diff options
author | Vasilii Chernov <vchernov@inr.ru> | 2016-02-05 12:33:48 +0100 |
---|---|---|
committer | Vasilii Chernov <vchernov@inr.ru> | 2016-02-05 12:33:48 +0100 |
commit | 5349163e93a107fdfea2ad58760f6149a8d749b0 (patch) | |
tree | 84afe1008bac52a00785ba71f415ae51b1b9c768 /CMakeLists.txt | |
parent | 99c165c078222c789d5fc90a79c756c8fffdafea (diff) | |
download | pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.gz pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.bz2 pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.xz pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.zip |
Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 63bdeb3..a0fe0f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ SET(ENV{PKG_CONFIG_PATH} "${LIB_INSTALL_DIR}/pkgconfig:$ENV{PKG_CONFIG_PATH}") find_package(PkgConfig REQUIRED) find_package(Threads REQUIRED) -find_package(PythonLibs REQUIRED) +find_package(PythonLibs 2.7 REQUIRED) set(EXTRA_SYSTEM_LIBS -lrt) @@ -91,6 +91,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/misc/pcitool.pc.in ${CMAKE_CURRENT_BI configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcilib/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/pcilib/config.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcilib/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/pcilib/version.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/docs/Doxyfile) +file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/pci + DESTINATION ${CMAKE_CURRENT_BINARY_DIR} + FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ + GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/misc/pcitool.pc |