2016-02-09 20:35:13 +00:00
|
|
|
project(${bare_name}-test CXX)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
test_diriterator.cpp
|
2016-02-19 20:57:43 +00:00
|
|
|
test_guess_content_type.cpp
|
2016-05-11 18:36:23 +00:00
|
|
|
test_glob2regex.cpp
|
2016-06-15 13:57:52 +00:00
|
|
|
test_tiger_string_conv.cpp
|
2016-06-15 16:27:32 +00:00
|
|
|
test_lexical_cast.cpp
|
2016-02-09 20:35:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2016-02-09 22:23:50 +00:00
|
|
|
PRIVATE gtest
|
|
|
|
PRIVATE gtest_main
|
2016-05-11 18:36:23 +00:00
|
|
|
PRIVATE glob2regex
|
2016-02-09 20:35:13 +00:00
|
|
|
)
|
2016-04-20 22:25:52 +00:00
|
|
|
|
|
|
|
add_test(
|
|
|
|
NAME LibraryTests
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMAND ${PROJECT_NAME}
|
|
|
|
)
|