Exlcude tests form all target

This commit is contained in:
Mario Hüttel 2021-04-10 22:34:46 +02:00
parent 77a6a86234
commit 18b3ab377a

View File

@ -4,6 +4,6 @@ add_custom_target(test "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}" "-r compact
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/catch-framework")
aux_source_directory("src" TEST_SOURCES)
add_executable(${PROJECT_NAME} ${TEST_SOURCES})
add_executable(${PROJECT_NAME} EXCLUDE_FROM_ALL ${TEST_SOURCES})
target_link_libraries(${PROJECT_NAME} linklist-lib)