1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-25 00:53:43 +00:00
dindexer/test/unit_cli/CMakeLists.txt

33 lines
700 B
Text
Raw Normal View History

2016-04-20 22:22:00 +00:00
project(${bare_name}-test_cli CXX C)
add_executable(${PROJECT_NAME}
${CMAKE_SOURCE_DIR}/src/main/damerau_levenshtein.c
${CMAKE_SOURCE_DIR}/src/main/utf8_ops.c
test_damerau_levenshtein.cpp
2016-05-05 18:05:56 +00:00
test_tag_splitting.cpp
2016-04-20 22:22:00 +00:00
)
target_include_directories(${PROJECT_NAME}
PRIVATE ${CMAKE_SOURCE_DIR}/src
PRIVATE ${CMAKE_SOURCE_DIR}/lib/pbl/pbl/src/src
)
target_include_directories(${PROJECT_NAME} SYSTEM
PRIVATE ../gtest/include
)
target_link_libraries(${PROJECT_NAME}
PRIVATE ${bare_name}-if
PRIVATE ${bare_name}-common
PRIVATE ${bare_name}-machinery
PRIVATE gtest
PRIVATE gtest_main
PRIVATE pbl
)
2016-04-20 22:25:52 +00:00
add_test(
NAME CliTests
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${PROJECT_NAME}
)