diff options
author | Vasilii Chernov <vchernov@inr.ru> | 2016-02-19 15:38:47 +0100 |
---|---|---|
committer | Vasilii Chernov <vchernov@inr.ru> | 2016-02-19 15:38:47 +0100 |
commit | b16fd97ffcaf9e7bd3fd52e505adbed2ffd0c768 (patch) | |
tree | 32c92088aa606535b09201a8c1453487dc63dbeb | |
parent | 3bb43f1260ec30e919d11a554ab4e0d29dd9312e (diff) | |
download | pcitool-b16fd97ffcaf9e7bd3fd52e505adbed2ffd0c768.tar.gz pcitool-b16fd97ffcaf9e7bd3fd52e505adbed2ffd0c768.tar.bz2 pcitool-b16fd97ffcaf9e7bd3fd52e505adbed2ffd0c768.tar.xz pcitool-b16fd97ffcaf9e7bd3fd52e505adbed2ffd0c768.zip |
Add istall step for pcipywrap
-rw-r--r-- | pcilib/CMakeLists.txt | 6 | ||||
-rw-r--r-- | pywrap/CMakeLists.txt | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/pcilib/CMakeLists.txt b/pcilib/CMakeLists.txt index cdc9c3f..ea1db8b 100644 --- a/pcilib/CMakeLists.txt +++ b/pcilib/CMakeLists.txt @@ -21,6 +21,10 @@ install(FILES pcilib.h DESTINATION include ) -install(FILES bar.h kmem.h locking.h lock.h bank.h register.h xml.h dma.h event.h model.h error.h debug.h env.h tools.h timing.h cpu.h datacpy.h pagecpy.h memcpy.h export.h version.h view.h unit.h +install(FILES bar.h kmem.h locking.h lock.h bank.h register.h xml.h dma.h event.h model.h error.h debug.h env.h tools.h timing.h cpu.h datacpy.h pagecpy.h memcpy.h export.h view.h unit.h + DESTINATION include/pcilib +) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/version.h DESTINATION include/pcilib ) diff --git a/pywrap/CMakeLists.txt b/pywrap/CMakeLists.txt index 4592c9a..bebdf2e 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) +#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) |