diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-16 20:06:34 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-16 20:06:34 +0100 |
commit | 142a1a83472d4dde6e7fdc58a46c6800505f44ab (patch) | |
tree | 2e43f3a0435a7e2f69a3f7581b20261ec2f70783 /pywrap/CMakeLists.txt | |
parent | c1effc7b4959771c3f0b9d6494637b877594582b (diff) | |
download | pcitool-142a1a83472d4dde6e7fdc58a46c6800505f44ab.tar.gz pcitool-142a1a83472d4dde6e7fdc58a46c6800505f44ab.tar.bz2 pcitool-142a1a83472d4dde6e7fdc58a46c6800505f44ab.tar.xz pcitool-142a1a83472d4dde6e7fdc58a46c6800505f44ab.zip |
Use GNUInstallDirs
Diffstat (limited to 'pywrap/CMakeLists.txt')
-rw-r--r-- | pywrap/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pywrap/CMakeLists.txt b/pywrap/CMakeLists.txt index 5acd17a..1417a04 100644 --- a/pywrap/CMakeLists.txt +++ b/pywrap/CMakeLists.txt @@ -17,9 +17,9 @@ set(CMAKE_SWIG_FLAGS "") swig_add_module(pcipywrap python pcipywrap.i pcipywrap.c) swig_link_libraries(pcipywrap ${PYTHON_LIBRARIES} pcilib) -install(TARGETS ${SWIG_MODULE_pcipywrap_REAL_NAME} DESTINATION ${PYTHON_INSTALL_DIR}) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pcipywrap.py DESTINATION ${PYTHON_INSTALL_DIR}) -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcilib.py DESTINATION ${PYTHON_INSTALL_DIR}) +install(TARGETS ${SWIG_MODULE_pcipywrap_REAL_NAME} DESTINATION ${PCILIB_PYTHON_SITEDIR}) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pcipywrap.py DESTINATION ${PCILIB_PYTHON_SITEDIR}) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcilib.py DESTINATION ${PCILIB_PYTHON_SITEDIR}) if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/test_pcilib.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) |