diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-11-16 17:10:19 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-11-20 07:22:02 +0000 |
commit | 645785b5eddd1b90cea447d6a2eb7a53c255a820 (patch) | |
tree | cde298f81f1dc55f300ec1f05bfce192b07ab48e /tests | |
parent | 86955eadae3047a68b79fa861fd926575680dd24 (diff) |
Split CMakeLists.txt
Do not use one monolithic file for the whole of jom.
Also, modernize the project files.
Change-Id: Iea764aa40bfa6f0064d864521a0726ca107df486
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..7e443cc --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,11 @@ +find_package(Qt5 5.2.0 REQUIRED COMPONENTS Test) +add_executable(jom-test + tests.cpp tests.h) + +target_link_libraries(jom-test PRIVATE jomlib Qt5::Test) + +add_test(NAME jom-test COMMAND jom-test) + +add_custom_command(TARGET jom-test POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/makefiles $<TARGET_FILE_DIR:jom-test>/makefiles +) |