Co-authored-by: Karen <kkaspar@codereckons.com> Co-authored-by: Joel FALCOU <jfalcou@codereckons.com> See merge request oss/rotgen!9
22 lines
1.4 KiB
CMake
22 lines
1.4 KiB
CMake
##======================================================================================================================
|
|
## ROTGEN - Runtime Overlay for Eigen
|
|
## Copyright : CODE RECKONS
|
|
## SPDX-License-Identifier: BSL-1.0
|
|
##======================================================================================================================
|
|
include(${ROTGEN_SOURCE_DIR}/cmake/unit.cmake)
|
|
rotgen_setup_test_targets()
|
|
|
|
##======================================================================================================================
|
|
## Compiler options for Unit Tests
|
|
##======================================================================================================================
|
|
add_library(rotgen_test INTERFACE)
|
|
target_compile_options(rotgen_test INTERFACE -std=c++20 -Werror -Wall -Wextra -Wshadow -Wunused-variable)
|
|
target_include_directories( rotgen_test INTERFACE ${PROJECT_SOURCE_DIR}/test)
|
|
target_link_libraries(rotgen_test INTERFACE rotgen Eigen3::Eigen)
|
|
|
|
##======================================================================================================================
|
|
## Unit Tests registration
|
|
##======================================================================================================================
|
|
rotgen_glob_unit(PATTERN "unit/free_functions/*.cpp" INTERFACE rotgen_test)
|
|
rotgen_glob_unit(PATTERN "unit/matrix/*.cpp" INTERFACE rotgen_test)
|
|
rotgen_glob_unit(PATTERN "unit/block/*.cpp" INTERFACE rotgen_test)
|