1
0
forked from blue/lmdbal
lmdbal/test/CMakeLists.txt

28 lines
681 B
CMake
Raw Normal View History

enable_testing()
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIR})
add_executable(runUnitTests
basic.cpp
2023-03-30 17:00:56 +00:00
serialization.cpp
storagetransaction.cpp
cachetransaction.cpp
storagecursor.cpp
cachecursor.cpp
2023-08-17 14:45:11 +00:00
duplicates.cpp
)
2023-10-21 19:41:41 +00:00
target_compile_options(runUnitTests PRIVATE -fPIC -Wall -Wextra -O0)
target_include_directories(runUnitTests PRIVATE ${Qt${QT_VERSION_MAJOR}_INCLUDE_DIRS})
target_include_directories(runUnitTests PRIVATE ${Qt${QT_VERSION_MAJOR}Core_INCLUDE_DIRS})
target_link_libraries(
runUnitTests
GTest::gtest_main
${PROJECT_NAME}
2023-03-26 18:42:52 +00:00
Qt${QT_VERSION_MAJOR}::Core
)
include(GoogleTest)
gtest_discover_tests(runUnitTests)