summaryrefslogtreecommitdiffstats
path: root/pywrap/CMakeLists.txt
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-11 14:24:01 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-11 14:24:01 +0100
commitd7fc669bf0dbe37f46d2efec4940feb8504017c2 (patch)
tree7075ee0851d52f9e448be3ff084dde1c35014558 /pywrap/CMakeLists.txt
parent76ee5a167add1c169a982ab59aa0544f827cb365 (diff)
downloadpcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.gz
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.bz2
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.xz
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.zip
Change no_set_check parameter name. Move Python wrap to separate directory.
Diffstat (limited to 'pywrap/CMakeLists.txt')
-rw-r--r--pywrap/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/pywrap/CMakeLists.txt b/pywrap/CMakeLists.txt
new file mode 100644
index 0000000..e5f7ea7
--- /dev/null
+++ b/pywrap/CMakeLists.txt
@@ -0,0 +1,22 @@
+include_directories(
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/pcilib
+ ${CMAKE_BINARY_DIR}/pcilib
+ ${LIBXML2_INCLUDE_DIRS}
+ ${PYTHON_INCLUDE_DIR}
+ ${UTHASH_INCLUDE_DIRS}
+)
+
+#Creating python wrapping
+INCLUDE(${SWIG_USE_FILE})
+
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
+
+SET(CMAKE_SWIG_FLAGS "")
+
+SET_SOURCE_FILES_PROPERTIES(pcipywrap.i PROPERTIES SWIG_FLAGS "-includeall")
+SWIG_ADD_MODULE(pcipywrap python pcipywrap.i pcipywrap.c)
+SWIG_LINK_LIBRARIES(pcipywrap ${PYTHON_LIBRARIES} pcilib)
+
+configure_file(server.py server.py)