Commit b8f91af8 authored by Michaël Roynard's avatar Michaël Roynard

Switch to a less intrusive generator

parent 40b5803b
Pipeline #4133 failed with stages
in 1 minute and 23 seconds
......@@ -41,6 +41,11 @@ endif(COMPILER_MSVC)
install(DIRECTORY include DESTINATION include FILES_MATCHING PATTERN "*.hpp")
set(CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR})
find_package(gtest REQUIRED)
add_subdirectory(include)
enable_testing()
......
find_package(gtest REQUIRED)
set(GTEST_CONSTEXPR_EXT_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/include")
add_library(Gtest-constexpr-ext INTERFACE)
......
......@@ -16,7 +16,7 @@ macro(add_unit_test Executable Source)
target_compile_options(test_${Executable} PRIVATE -Wno-unused-private-field)
endif()
target_link_libraries(test_${Executable} PRIVATE CONAN_PKG::gtest)
target_link_libraries(test_${Executable} PRIVATE gtest::gtest)
target_link_libraries(test_${Executable} PRIVATE Threads::Threads)
add_dependencies(tests-compile test_${Executable})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment