Skip to content
Snippets Groups Projects
Commit bd6a121f authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Fix deactivation on missing library

parent 34cdbb53
No related branches found
No related tags found
No related merge requests found
......@@ -3,19 +3,10 @@ set(LIB_NAME DSControllers)
armarx_component_set_name("${LIB_NAME}")
armarx_set_target("Library: ${LIB_NAME}")
find_package(Eigen3 QUIET)
find_package(Simox ${ArmarX_Simox_VERSION} QUIET)
find_package(MATHLIB QUIET)
armarx_build_if(Eigen3_FOUND "Eigen3 not available")
armarx_build_if(Simox_FOUND "Simox-VirtualRobot not available")
armarx_build_if(MATHLIB_FOUND "Eigen3 not available")
if (Eigen3_FOUND AND Simox_FOUND)
include_directories(${Simox_INCLUDE_DIRS})
include_directories(SYSTEM ${Eigen3_INCLUDE_DIR})
endif()
include_directories(${MATHLIB_INCLUDE_DIRS})
message(STATUS "mathlib is ${MATHLIB_LIBS}")
......@@ -50,4 +41,6 @@ set(LIB_HEADERS
armarx_add_library("${LIB_NAME}" "${LIB_FILES}" "${LIB_HEADERS}" "${LIBS}")
target_include_directories("${LIB_NAME}" SYSTEM PUBLIC ${MATHLIB_INCLUDE_DIRS})
# add unit tests
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