16 lines
No EOL
676 B
CMake
16 lines
No EOL
676 B
CMake
project(Utils)
|
|
|
|
### ---------------------- Static Library --------------------- ###
|
|
file(GLOB SOURCES "./private/*.cpp")
|
|
add_library(${PROJECT_NAME} STATIC ${SOURCES})
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ./public/)
|
|
|
|
### ---------------------- Dependencies --------------------- ###
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC Containers)
|
|
|
|
### -------------------------- Tests -------------------------- ###
|
|
enable_testing()
|
|
file(GLOB TEST_SOURCES "./tests/*.cpp")
|
|
add_executable(${PROJECT_NAME}Tests ${TEST_SOURCES})
|
|
target_link_libraries(${PROJECT_NAME}Tests ${PROJECT_NAME} UnitTest++)
|
|
add_test(NAME ${PROJECT_NAME}Tests COMMAND ${PROJECT_NAME}Tests) |