diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2016-11-29 17:11:01 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2016-11-29 17:46:39 (GMT) |
commit | 6938772a114099df406bc72cbc98a3c8d57cd458 (patch) | |
tree | 92f7c8871a6e35b0186afd77a5f8acbadeb269a9 /Tests/QtAutogen/complex | |
parent | c4d4becf8b79f68534eb8320ccd63218afa4ca31 (diff) | |
download | CMake-6938772a114099df406bc72cbc98a3c8d57cd458.zip CMake-6938772a114099df406bc72cbc98a3c8d57cd458.tar.gz CMake-6938772a114099df406bc72cbc98a3c8d57cd458.tar.bz2 |
QtAutogen tests: Pass Qt compiler features to library targets
Diffstat (limited to 'Tests/QtAutogen/complex')
-rw-r--r-- | Tests/QtAutogen/complex/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/QtAutogen/complex/CMakeLists.txt b/Tests/QtAutogen/complex/CMakeLists.txt index d1b34c6..0d44f50 100644 --- a/Tests/QtAutogen/complex/CMakeLists.txt +++ b/Tests/QtAutogen/complex/CMakeLists.txt @@ -12,6 +12,9 @@ set(CMAKE_AUTORCC ON) # create an executable and two library targets, each requiring automoc: add_library(codeeditorLib STATIC codeeditor.cpp) add_library(privateSlot OBJECT private_slot.cpp) +# Pass Qt compiler features to targets that don't link against Qt +target_compile_features(codeeditorLib PRIVATE ${QT_COMPILE_FEATURES}) +target_compile_features(privateSlot PRIVATE ${QT_COMPILE_FEATURES}) configure_file(generated_resource.qrc.in generated_resource.qrc @ONLY) add_custom_command( |