step one project reorganization

This commit is contained in:
Erik Frojdh
2019-01-18 14:41:04 +01:00
parent 8d6ee6ff46
commit 1b28cc88ff
16 changed files with 141 additions and 47 deletions

View File

@ -0,0 +1,26 @@
include_directories(
${PROJECT_SOURCE_DIR}/catch
../include
)
set(SOURCES
test.cpp
test-CmdLineParser.cpp
test-container_utils.cpp
test-string_utils.cpp
test-Timer.cpp
)
add_executable(testSlsSupportLib ${SOURCES})
target_link_libraries(testSlsSupportLib
slsSupportLib
pthread
rt
)
set_target_properties(testSlsSupportLib PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
)
#TODO! Move to automatic test discovery
add_test(test-slsSupportLib ${CMAKE_BINARY_DIR}/bin/testSlsSupportLib)