Commit 3bff1244 authored by Laurent Belcour's avatar Laurent Belcour

[CMake] Add one of the unit test to the CMake test suite

parent 7b675ca2
cmake_minimum_required (VERSION 3.2)
project (ALTA CXX)
# Find required packages
find_package(EIGEN3)
add_definitions(-DALTA_PLUGIN_DIRECTORY="/usr/lib/alta_plugins")
include_directories ("external/build" "." ${EIGEN3_INCLUDE_DIR})
# Add core and library include files
include_directories ("external/build" "sources" ${EIGEN3_INCLUDE_DIR})
# Add ALTA core library
add_library(core STATIC sources/core/common.cpp
sources/core/metrics.cpp
sources/core/params.cpp
......@@ -16,22 +19,14 @@ add_library(core STATIC sources/core/common.cpp
sources/core/plugins_manager.cpp
sources/core/vertical_segment.cpp
sources/core/rational_function.cpp)
target_compile_features(core PRIVATE cxx_range_for)
# Add dependencies
# Add main test suite
#add_executable (TestCovariance4D tests/Covariance4D.cpp)
#add_executable (TestInvCovariance4D tests/InvCovariance4D.cpp)
#target_compile_features(TestCovariance4D PRIVATE cxx_range_for)
#target_compile_features(TestInvCovariance4D PRIVATE cxx_range_for)
include_directories("sources/tests")
#enable_testing()
#add_test(TestCovariance4D TestCovariance4D)
#add_test(TestInvCovariance4D TestInvCovariance4D)
add_executable(test_data_io sources/tests/core/data-io.cpp)
target_link_libraries(test_data_io core)
target_compile_features(test_data_io PRIVATE cxx_range_for)
#add_executable (Tutorial1 tutorials/tutorial1.cpp)
#target_compile_features(Tutorial1 PRIVATE cxx_range_for)
#add_executable (Tutorial2 tutorials/tutorial2.cpp)
#target_compile_features(Tutorial2 PRIVATE cxx_range_for)
enable_testing()
add_test(data_io test_data_io)
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