summaryrefslogtreecommitdiffstats
path: root/pyk8055/CMakeLists.txt
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-04 08:11:57 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-04 08:11:57 +0200
commitacad3bf6c8d3751d42f1fa49b95763b9e5388c07 (patch)
tree8413e34bc0d4ef770139913696b481a516b62d93 /pyk8055/CMakeLists.txt
parent4e72fd697fe05010370e705d29fcdaf8cb77b59f (diff)
downloadk8055-acad3bf6c8d3751d42f1fa49b95763b9e5388c07.zip
k8055-acad3bf6c8d3751d42f1fa49b95763b9e5388c07.tar.gz
fix python binding generation
Diffstat (limited to 'pyk8055/CMakeLists.txt')
-rw-r--r--pyk8055/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyk8055/CMakeLists.txt b/pyk8055/CMakeLists.txt
index ebc8d6b..504a0bc 100644
--- a/pyk8055/CMakeLists.txt
+++ b/pyk8055/CMakeLists.txt
@@ -5,11 +5,10 @@ INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${LIBUSB_INCLUDE_DIR}
)
-
SET(CMAKE_SWIG_FLAGS "")
-SET_SOURCE_FILES_PROPERTIES(libk8055.i PROPERTIES CPLUSPLUS ON)
+SET_SOURCE_FILES_PROPERTIES(libk8055.i PROPERTIES CPLUSPLUS OFF)
SET_SOURCE_FILES_PROPERTIES(libk8055.i PROPERTIES SWIG_FLAGS "-includeall")
SWIG_ADD_MODULE(pyk8055 python libk8055.i ${CMAKE_SOURCE_DIR}/libk8055/libk8055.c)
-SWIG_LINK_LIBRARIES(pyk8055 ${PYTHON_LIBRARIES})
+SWIG_LINK_LIBRARIES(pyk8055 ${PYTHON_LIBRARIES} ${LIBUSB_LDFLAGS} k8055-${VERSION})