21 lines
417 B
CMake
21 lines
417 B
CMake
enable_testing()
|
|
find_package(GTest REQUIRED)
|
|
|
|
add_executable(dtl_test
|
|
test/dtl_test.cpp
|
|
test/dtl_test_common.cpp
|
|
test/intdifftest.cpp
|
|
test/objdifftest.cpp
|
|
test/patchtest.cpp
|
|
test/strdiff3test.cpp
|
|
test/strdifftest.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)
|