1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
##
## CMake build script for the yaramod tests.
##
# Source files.
set(SOURCES
tokenstream_tests.cpp
representation_tests.cpp
builder_tests.cpp
parser_tests.cpp
trie_tests.cpp
utils_tests.cpp
yaramod_tests.cpp
)
if(NOT TARGET yaramod_tests)
find_package(Threads REQUIRED)
find_package(GTest REQUIRED)
# Executable.
add_executable(yaramod_tests ${SOURCES})
# Linking.
target_link_libraries(yaramod_tests yaramod GTest::Main)
# Includes.
target_include_directories(yaramod_tests PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
endif()
|