blue
7aaab5e807
All checks were successful
Main LMDBAL workfow / Test LMDBAL with qt5 (push) Successful in 1m8s
Main LMDBAL workfow / Test LMDBAL with qt6 (push) Successful in 1m22s
Main LMDBAL workfow / Release documentation (push) Successful in 26s
LMDBAL Release workflow / Release qt5 build to AUR (release) Successful in 24s
LMDBAL Release workflow / Release qt6 build to AUR (release) Successful in 24s
28 lines
680 B
CMake
28 lines
680 B
CMake
enable_testing()
|
|
find_package(GTest REQUIRED)
|
|
include_directories(${GTEST_INCLUDE_DIR})
|
|
|
|
add_executable(runUnitTests
|
|
basic.cpp
|
|
serialization.cpp
|
|
storagetransaction.cpp
|
|
cachetransaction.cpp
|
|
storagecursor.cpp
|
|
cachecursor.cpp
|
|
duplicates.cpp
|
|
)
|
|
|
|
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
|
|
${LMDBAL_NAME}
|
|
Qt${QT_VERSION_MAJOR}::Core
|
|
)
|
|
include(GoogleTest)
|
|
gtest_discover_tests(runUnitTests)
|