CMakeLists.txt 531 Bytes
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
2
3
4
5
SET(${PY_NAME}_BINDINGS_SOURCES
  curve_python.cpp
  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-curve" "python/test/test.py" "python")