mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
21 lines
626 B
CMake
21 lines
626 B
CMake
enable_testing()
|
|
|
|
project(unit_tests)
|
|
|
|
include(GoogleTest)
|
|
|
|
file(GLOB_RECURSE UNIT_TESTS_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
|
|
add_executable(unit_tests ${UNIT_TESTS_SOURCES})
|
|
|
|
set_target_properties(unit_tests PROPERTIES
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}"
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/out/${CMAKE_BUILD_TYPE}"
|
|
UNITY_BUILD ON
|
|
UNITY_BUILD_BATCH_SIZE 20
|
|
CXX_STANDARD 23
|
|
CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
target_link_libraries(unit_tests PRIVATE gtest gtest_main omath::omath)
|
|
|
|
gtest_discover_tests(unit_tests) |