diff options
Diffstat (limited to 'pywrap/CMakeLists.txt')
-rw-r--r-- | pywrap/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pywrap/CMakeLists.txt b/pywrap/CMakeLists.txt index 1693232..f1c909e 100644 --- a/pywrap/CMakeLists.txt +++ b/pywrap/CMakeLists.txt @@ -18,5 +18,10 @@ set(CMAKE_SWIG_FLAGS "") swig_add_module(pcipywrap python pcipywrap.i pcipywrap.c) swig_link_libraries(pcipywrap ${PYTHON_LIBRARIES} pcilib) -#configure_file(server.py server.py) -#configure_file(test_pcipywrap.py test_pcipywrap.py) +#install pcilib python wrapper into Python site packages folder +execute_process ( COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE) +install(TARGETS ${SWIG_MODULE_pcipywrap_REAL_NAME} DESTINATION ${PYTHON_SITE_PACKAGES}) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pcipywrap.py DESTINATION ${PYTHON_SITE_PACKAGES}) + +configure_file(server.py server.py) +configure_file(test_pcipywrap.py test_pcipywrap.py) |