Skip to content
Snippets Groups Projects
Commit 073a7a9d authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Made YamlCpp mandatory.

parent faf680dd
No related branches found
No related tags found
2 merge requests!39release after RAL,!38After 2nd RAL submission
...@@ -98,19 +98,20 @@ FIND_PACKAGE(Threads REQUIRED) ...@@ -98,19 +98,20 @@ FIND_PACKAGE(Threads REQUIRED)
FIND_PACKAGE(wolf REQUIRED) FIND_PACKAGE(wolf REQUIRED)
FIND_PACKAGE(YamlCpp REQUIRED)
FIND_PACKAGE(Ceres QUIET) #Ceres is not required
IF(Ceres_FOUND)
MESSAGE("Ceres Library FOUND: Ceres related sources will be built.")
ENDIF(Ceres_FOUND)
INCLUDE (${PROJECT_SOURCE_DIR}/cmake_modules/FindYamlCpp.cmake)
IF(YAMLCPP_FOUND) IF(YAMLCPP_FOUND)
MESSAGE("yaml-cpp Library FOUND: yaml-cpp related sources will be built.") MESSAGE("yaml-cpp Library FOUND: yaml-cpp related sources will be built.")
ELSEIF(YAMLCPP_FOUND) ELSEIF(YAMLCPP_FOUND)
MESSAGE("yaml-cpp Library NOT FOUND!") MESSAGE("yaml-cpp Library NOT FOUND!")
ENDIF(YAMLCPP_FOUND) ENDIF(YAMLCPP_FOUND)
FIND_PACKAGE(Ceres QUIET) #Ceres is not required
IF(Ceres_FOUND)
MESSAGE("Ceres Library FOUND: Ceres related sources will be built.")
ENDIF(Ceres_FOUND)
FIND_PATH( FIND_PATH(
Suitesparse_INCLUDE_DIRS Suitesparse_INCLUDE_DIRS
NAMES SuiteSparse_config.h NAMES SuiteSparse_config.h
...@@ -146,7 +147,8 @@ include_directories("${PROJECT_BINARY_DIR}/conf") ...@@ -146,7 +147,8 @@ include_directories("${PROJECT_BINARY_DIR}/conf")
# ============EXAMPLE================== # ============EXAMPLE==================
INCLUDE_DIRECTORIES(${EIGEN_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${EIGEN_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${wolf_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${wolf_INCLUDE_DIRS})
include_directories(BEFORE "include") INCLUDE_DIRECTORIES(BEFORE "include")
INCLUDE_DIRECTORIES(${YAMLCPP_INCLUDE_DIR})
IF(Ceres_FOUND) IF(Ceres_FOUND)
INCLUDE_DIRECTORIES(${CERES_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${CERES_INCLUDE_DIRS})
ENDIF(Ceres_FOUND) ENDIF(Ceres_FOUND)
......
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