21 lines
417 B
CMake
21 lines
417 B
CMake
enable_testing()
|
|
find_package(GTest REQUIRED)
|
|
|
|
add_executable(dtl_test
|
|
test/Intdifftest.cpp
|
|
test/Objdifftest.cpp
|
|
test/Patchtest.cpp
|
|
test/Strdiff3test.cpp
|
|
test/Strdifftest.cpp
|
|
test/dtl_test.cpp
|
|
test/dtl_test_common.cpp
|
|
)
|
|
|
|
target_include_directories(dtl_test BEFORE PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test
|
|
)
|
|
|
|
target_link_libraries(dtl_test GTest::gtest GTest::gtest_main)
|
|
|
|
add_test(AllTests dtl_test)
|