summaryrefslogtreecommitdiffstats
path: root/pyk8055/CMakeLists.txt
blob: 504a0bc5d561d363b6b0938bca574960e0ed2e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

INCLUDE(${SWIG_USE_FILE})
INCLUDE_DIRECTORIES(
    ${PYTHON_INCLUDE_PATH}
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${LIBUSB_INCLUDE_DIR}
    )
SET(CMAKE_SWIG_FLAGS "")

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} ${LIBUSB_LDFLAGS} k8055-${VERSION})