mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +00:00
King_DuckZ
05aaaebe0d
It's still missing ast optimization and some code cleanup is also needed, but it should be working in the general case. Also write a small unit test for it.
26 lines
502 B
CMake
26 lines
502 B
CMake
project(${bare_name}-test CXX)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
test_diriterator.cpp
|
|
test_guess_content_type.cpp
|
|
test_glob2regex.cpp
|
|
)
|
|
|
|
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 glob2regex
|
|
)
|
|
|
|
add_test(
|
|
NAME LibraryTests
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
COMMAND ${PROJECT_NAME}
|
|
)
|