Exlcude tests form all target
This commit is contained in:
parent
77a6a86234
commit
18b3ab377a
@ -4,6 +4,6 @@ add_custom_target(test "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}" "-r compact
|
|||||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/catch-framework")
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/catch-framework")
|
||||||
aux_source_directory("src" TEST_SOURCES)
|
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)
|
target_link_libraries(${PROJECT_NAME} linklist-lib)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user