CMakeLists.txt 753 Bytes
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
# Copyright 2010-2020, Florent Lamiraux, Thomas Moulard, Olivier Stasse, Guilhem Saurel, JRL, CNRS/AIST, LAAS-CNRS
2
3
4

SET(PYTHON_MODULE wrap)

5
6
7
8
9
10
11
12
13
14
15
16
17
ADD_LIBRARY(${PYTHON_MODULE} MODULE
  convert-dg-to-py.cc
  debug-py.cc
  dynamic-graph-py.cc
  entity-py.cc
  exception-python.cc
  factory-py.cc
  pool-py.cc
  python-compat.cc
  signal-base-py.cc
  signal-caster-py.cc
  signal-wrapper.cc
  )
18

19
20
21
TARGET_INCLUDE_DIRECTORIES(${PYTHON_MODULE} SYSTEM PUBLIC ${PYTHON_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(${PYTHON_MODULE} ${PYTHON_LIBRARY}
  dynamic-graph::dynamic-graph)
Guilhem Saurel's avatar
Guilhem Saurel committed
22

23
# Remove prefix lib
24
SET_TARGET_PROPERTIES(${PYTHON_MODULE} PROPERTIES PREFIX "")
25

26
27
28
INSTALL(TARGETS ${PYTHON_MODULE}
  EXPORT ${TARGETS_EXPORT_NAME}
  DESTINATION ${PYTHON_SITELIB}/dynamic_graph)