Skip to content
Snippets Groups Projects
Commit a1a7d4ca authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] fix eigen3 detection

parent 77626a48
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,9 @@ INCLUDE(cmake/python.cmake)
# Disable -Werror on Unix for now.
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_VERBOSE_MAKEFILE True)
SET(DOXYGEN_USE_MATHJAX YES)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
ADD_REQUIRED_DEPENDENCY(eigen3)
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
......@@ -21,10 +21,10 @@ OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
IF(BUILD_PYTHON_INTERFACE)
# search for python
FINDPYTHON()
include_directories( ${PYTHON_INCLUDE_DIRS} )
include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS} )
find_package( Boost COMPONENTS python REQUIRED )
include_directories( ${Boost_INCLUDE_DIR} )
include_directories(SYSTEM ${Boost_INCLUDE_DIR} )
add_subdirectory (python)
ENDIF(BUILD_PYTHON_INTERFACE)
......
ADD_UNIT_TEST(
spline_tests Main.cpp
)
ADD_UNIT_TEST(spline_tests Main.cpp)
PKG_CONFIG_USE_DEPENDENCY(spline_tests eigen3)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment