Changeset View
Changeset View
Standalone View
Standalone View
tests/core/CMakeLists.txt
Context not available. | |||||
11 | add_executable(CoreActivityInfoTest ActivityInfoTest.cpp) | 11 | add_executable(CoreActivityInfoTest ActivityInfoTest.cpp) | ||
---|---|---|---|---|---|
12 | target_link_libraries(CoreActivityInfoTest ${CORE_TEST_LIBRARIES}) | 12 | target_link_libraries(CoreActivityInfoTest ${CORE_TEST_LIBRARIES}) | ||
13 | add_test(NAME CoreActivityInfoTest COMMAND $<TARGET_FILE:CoreActivityInfoTest>) | 13 | add_test(NAME CoreActivityInfoTest COMMAND $<TARGET_FILE:CoreActivityInfoTest>) | ||
14 | | ||||
15 | add_executable(CoreApplicationSettingsTest ApplicationSettingsTest.cpp) | ||||
jjazeix: can you do a macro or function to avoid duplicating these 3 lines everytime? | |||||
You can take a look at: https://api.kde.org/ecm/module/ECMAddTests.html, it may be interesting jjazeix: You can take a look at: https://api.kde.org/ecm/module/ECMAddTests.html, it may be interesting | |||||
himanshuvishwakarma: Nice Idea ;-)
I will update in the next diff. | |||||
16 | target_link_libraries(CoreApplicationSettingsTest ${CORE_TEST_LIBRARIES}) | ||||
17 | add_test(NAME CoreApplicationSettingsTest COMMAND $<TARGET_FILE:CoreApplicationSettingsTest>) | ||||
18 | | ||||
Context not available. |
can you do a macro or function to avoid duplicating these 3 lines everytime?