CMakeLists.txt 736 Bytes
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
2
3
4
5
6
7
cmake_minimum_required(VERSION 2.6)

if(CLP_FOUND)
  include_directories("${CLP_INCLUDE_DIR}")
endif()


8
9
10
SET(LIBRARY_NAME ${PROJECT_NAME})

SET(${LIBRARY_NAME}_SOURCES
Guilhem Saurel's avatar
Guilhem Saurel committed
11
12
13
14
15
16
17
  centroidal_dynamics.cpp
  solver_LP_abstract.cpp
  solver_LP_qpoases.cpp
  solver_LP_clp.cpp
  util.cpp
  logger.cpp
  stop-watch.cpp
18
19
20
21
  )

ADD_LIBRARY(${LIBRARY_NAME} SHARED ${${LIBRARY_NAME}_SOURCES})

Guilhem Saurel's avatar
Guilhem Saurel committed
22
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CDD_LIBRARIES} ${qpOASES_LIBRARY})
Guilhem Saurel's avatar
Guilhem Saurel committed
23
TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} SYSTEM PUBLIC ${CDD_INCLUDE_DIRS})
Guilhem Saurel's avatar
Guilhem Saurel committed
24
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} eigen3)
25

Guilhem Saurel's avatar
Guilhem Saurel committed
26
27
28
29
if(CLP_FOUND)
  TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CLP_LIBRARIES}
    /usr/lib/libCoinUtils.so)
endif()
30
31

INSTALL(TARGETS ${LIBRARY_NAME} DESTINATION lib)