CMakeLists.txt 740 Bytes
Newer Older
1
STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME})
2
3
4
5

ADD_REQUIRED_DEPENDENCY("eigenpy")

# Define the wrapper library that wraps our library
6
add_library( ${PY_NAME} SHARED curve_python.cpp python_variables.cpp python_variables.h )
7
8
#~ target_link_libraries( centroidal_dynamics ${Boost_LIBRARIES} ${PROJECT_NAME} )
# don't prepend wrapper library name with lib
stevet's avatar
stevet committed
9
set_target_properties( ${PY_NAME} PROPERTIES PREFIX ""  )
10
11

IF(APPLE)
12
13
  # We need to change the extension for python bindings
  SET_TARGET_PROPERTIES(${PY_NAME} PROPERTIES SUFFIX ".so")
14
ENDIF(APPLE)
15
PKG_CONFIG_USE_DEPENDENCY(${PY_NAME} eigenpy)
16
17

INSTALL(
18
19
  TARGETS ${PY_NAME}	DESTINATION ${PYTHON_SITELIB}
  )
Guilhem Saurel's avatar
Guilhem Saurel committed
20

21
ADD_PYTHON_UNIT_TEST("python-curve" "python/test/test.py" "python")