/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pywrap/CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2016-02-23 06:20:33 UTC
  • mfrom: (346.1.18 pcitool)
  • Revision ID: csa@suren.me-20160223062033-mz8qkpm1a2oioveb
Merge Python scripting support from Vasiliy Chernov

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
    ${CMAKE_SOURCE_DIR}
 
3
    ${CMAKE_BINARY_DIR}
 
4
    ${CMAKE_SOURCE_DIR}/pcilib
 
5
    ${CMAKE_BINARY_DIR}/pcilib
 
6
    ${LIBXML2_INCLUDE_DIRS}
 
7
    ${PYTHON_INCLUDE_DIR}
 
8
    ${UTHASH_INCLUDE_DIRS}
 
9
)
 
10
 
 
11
set(HEADERS pcipywrap.h)
 
12
 
 
13
#Creating python wrapping
 
14
include(${SWIG_USE_FILE})
 
15
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 
16
set(CMAKE_SWIG_FLAGS "")
 
17
 
 
18
swig_add_module(pcipywrap python pcipywrap.i pcipywrap.c)
 
19
swig_link_libraries(pcipywrap ${PYTHON_LIBRARIES} pcilib)
 
20
 
 
21
#configure_file(server.py server.py)
 
22
#configure_file(test_pcipywrap.py test_pcipywrap.py)