You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
489 B
CMake

add_executable(unit_tests mainTestRunner.cpp
gtestwrapper.h
test_types.cpp
test_tiffheader.cpp
)
#TODO Use GTest::GTest once we upgrade the minimum CMake version required
target_link_libraries(unit_tests
PRIVATE
exiv2lib
${GTEST_BOTH_LIBRARIES}
)
target_include_directories(unit_tests
PRIVATE
${GTEST_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/src
)
target_compile_definitions(unit_tests
PRIVATE
GTEST_LINKED_AS_SHARED_LIBRARY=1
)