CMakeLists.txt (665B)
1 cmake_minimum_required(VERSION 3.10) 2 3 project(virusIntegrationTest) 4 5 add_executable(virusIntegrationTest) 6 7 set(SOURCES integrationTest.cpp integrationTest.h) 8 9 target_sources(virusIntegrationTest PRIVATE ${SOURCES}) 10 source_group("source" FILES ${SOURCES}) 11 12 target_link_libraries(virusIntegrationTest PUBLIC virusConsoleLib) 13 14 add_test(NAME virusIntegrationTests COMMAND ${CMAKE_COMMAND} 15 -DTEST_RUNNER=$<TARGET_FILE:virusIntegrationTest> 16 -DROOT_DIR=${CMAKE_BINARY_DIR} 17 -P ${CMAKE_CURRENT_SOURCE_DIR}/runTest.cmake) 18 set_tests_properties(virusIntegrationTests PROPERTIES LABELS "IntegrationTest") 19 20 set_property(TARGET virusIntegrationTest PROPERTY FOLDER "Virus")