Newer
Older
andreadelprete
committed
cmake_minimum_required(VERSION 2.6)
andreadelprete
committed
INCLUDE(cmake/base.cmake)
andreadelprete
committed
andreadelprete
committed
SET(PROJECT_DESCRIPTION
"Utility classes for testing (robust) equilibrium of a system in contact with the environment, and other centroidal dynamics methods."
)
andreadelprete
committed
andreadelprete
committed
# Inhibit all warning messages.
# remove flag that makes all warnings into errors
andreadelprete
committed
string (REPLACE "-Werror" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
# search for python
FINDPYTHON(2.7 EXACT REQUIRED)
find_package( PythonLibs 2.7 REQUIRED )
include_directories( ${PYTHON_INCLUDE_DIRS} )
ADD_REQUIRED_DEPENDENCY("eigenpy")
find_package( Boost COMPONENTS python REQUIRED )
include_directories( ${Boost_INCLUDE_DIR} )
andreadelprete
committed
${PROJECT_SOURCE_DIR}/cmake/find-external/CDD
${PROJECT_SOURCE_DIR}/cmake/find-external/CLP
${PROJECT_SOURCE_DIR}/cmake/find-external/qpOASES
)
andreadelprete
committed
find_package(CDD REQUIRED)
find_package(CLP)
IF("${CLP_LIBRARY}" STREQUAL "CLP_LIBRARY-NOTFOUND")
message(STATUS "CLP_LIBRARY equal to CLP_LIBRARY-NOTFOUND so I assume CLP was not found ")
message(STATUS "CLP library found, defining macro CLP_FOUND")
add_definitions(-DCLP_FOUND)
endif()
andreadelprete
committed
andreadelprete
committed
add_subdirectory (src)
add_subdirectory (test)
add_subdirectory (python)
andreadelprete
committed
SETUP_PROJECT_FINALIZE()