CMakeLists.txt 533 Bytes
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
SET(${PY_NAME}_BINDINGS_SOURCES
2
  curves_python.cpp
Guilhem Saurel's avatar
Guilhem Saurel committed
3
4
5
  python_variables.cpp
  python_variables.h
  )
6

Guilhem Saurel's avatar
Guilhem Saurel committed
7
8
9
ADD_LIBRARY(${PY_NAME} SHARED ${${PY_NAME}_BINDINGS_SOURCES})
SET_TARGET_PROPERTIES(${PY_NAME} PROPERTIES PREFIX "")
PKG_CONFIG_USE_DEPENDENCY(${PY_NAME} eigenpy)
10
11

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

Guilhem Saurel's avatar
Guilhem Saurel committed
16
INSTALL(TARGETS ${PY_NAME} DESTINATION ${PYTHON_SITELIB})
Guilhem Saurel's avatar
Guilhem Saurel committed
17

18
ADD_PYTHON_UNIT_TEST("python-curves" "python/test/test.py" "python")