summaryrefslogtreecommitdiffstats
path: root/pyk8055/CMakeLists.txt
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-02-20 01:35:47 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-02-20 01:35:47 +0100
commit48344a71caa1689e22ee33abf3b59d8903d35cad (patch)
tree1f404d6cab4b277d9f98ac1f4bb301dfccfadf17 /pyk8055/CMakeLists.txt
parentbeaeb2c95856bb89f9aa4ac7b256d1526f60cde9 (diff)
downloadk8055-48344a71caa1689e22ee33abf3b59d8903d35cad.zip
k8055-48344a71caa1689e22ee33abf3b59d8903d35cad.tar.gz
add pyk8055, without install rules
Diffstat (limited to 'pyk8055/CMakeLists.txt')
-rw-r--r--pyk8055/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/pyk8055/CMakeLists.txt b/pyk8055/CMakeLists.txt
new file mode 100644
index 0000000..33aa210
--- /dev/null
+++ b/pyk8055/CMakeLists.txt
@@ -0,0 +1,12 @@
+
+INCLUDE(${SWIG_USE_FILE})
+INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
+
+SET(CMAKE_SWIG_FLAGS "")
+
+SET_SOURCE_FILES_PROPERTIES(libk8055.i PROPERTIES CPLUSPLUS ON)
+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})
+