diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-08 18:49:32 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-13 12:50:17 (GMT) |
commit | a2c4e3489d9ccd7150b6fda2ea7254c21dcde1b2 (patch) | |
tree | 24189d25c031ccd25aef407d55aaa42e8cdf04c1 /Tests/QtAutogen/MocCMP0071/NEW | |
parent | cc66d356510c51b5240239a212a511fb0d23dc9a (diff) | |
download | CMake-a2c4e3489d9ccd7150b6fda2ea7254c21dcde1b2.zip CMake-a2c4e3489d9ccd7150b6fda2ea7254c21dcde1b2.tar.gz CMake-a2c4e3489d9ccd7150b6fda2ea7254c21dcde1b2.tar.bz2 |
Autogen: Tests: Separate MocCMP0071 test
Diffstat (limited to 'Tests/QtAutogen/MocCMP0071/NEW')
-rw-r--r-- | Tests/QtAutogen/MocCMP0071/NEW/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/QtAutogen/MocCMP0071/NEW/CMakeLists.txt b/Tests/QtAutogen/MocCMP0071/NEW/CMakeLists.txt new file mode 100644 index 0000000..954fe3d --- /dev/null +++ b/Tests/QtAutogen/MocCMP0071/NEW/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.10) +cmake_policy(SET CMP0071 NEW) + +# *Generate* files +set(CSD ${CMAKE_CURRENT_SOURCE_DIR}) +set(CBD ${CMAKE_CURRENT_BINARY_DIR}) +add_custom_command( + OUTPUT ${CBD}/Obj_p.h ${CBD}/Obj.hpp ${CBD}/Obj.cpp ${CBD}/main.cpp + COMMAND ${CMAKE_COMMAND} -E copy ${CSD}/../Obj_p.h ${CBD}/Obj_p.h + COMMAND ${CMAKE_COMMAND} -E copy ${CSD}/../Obj.hpp ${CBD}/Obj.hpp + COMMAND ${CMAKE_COMMAND} -E copy ${CSD}/../Obj.cpp ${CBD}/Obj.cpp + COMMAND ${CMAKE_COMMAND} -E copy ${CSD}/../main.cpp ${CBD}/main.cpp) + +add_executable(mocCMP0071New ${CBD}/Obj.cpp ${CBD}/main.cpp) +target_link_libraries(mocCMP0071New ${QT_LIBRARIES}) +set_target_properties(mocCMP0071New PROPERTIES AUTOMOC ON) |