diff options
Diffstat (limited to 'pyk8055/CMakeLists.txt')
-rw-r--r-- | pyk8055/CMakeLists.txt | 12 |
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}) + |