/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 CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-02 22:36:19 UTC
  • mfrom: (346.1.35 pcitool)
  • Revision ID: csa@suren.me-20160302223619-r1zd62x6kwbyd321
Further improvements of Python scripting and web-interface API for register manipulations by Vasiliy Chernov

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
project(pcitool)
2
2
 
3
 
set(PCILIB_VERSION "0.2.6")
 
3
set(PCILIB_VERSION "0.2.7")
4
4
set(PCILIB_ABI_VERSION "2")
5
5
 
6
6
cmake_minimum_required(VERSION 2.8)
38
38
find_package(Threads REQUIRED)
39
39
 
40
40
if (NOT DISABLE_PYTHON)
41
 
    find_package(PythonLibs 2.7 REQUIRED)
42
 
    find_package(PythonInterp 2.7 REQUIRED)
 
41
    set(PYTHON_VERSION 2.7 CACHE STRING "python version")
 
42
 
 
43
    find_package(PythonInterp ${PYTHON_VERSION} REQUIRED)
 
44
    find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT REQUIRED)
 
45
 
43
46
    find_package(SWIG REQUIRED)
44
47
    if (NOT PYTHON_VERSION_STRING VERSION_EQUAL PYTHONLIBS_VERSION_STRING)
45
48
        message (FATAL_ERROR "Version mismatch between python interpreter and libraries")
128
131
 
129
132
if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
130
133
    file(COPY ${CMAKE_SOURCE_DIR}/xml DESTINATION ${CMAKE_BINARY_DIR})
 
134
    file(COPY ${CMAKE_SOURCE_DIR}/pyserver DESTINATION ${CMAKE_BINARY_DIR})
131
135
    file(COPY ${CMAKE_SOURCE_DIR}/pci
132
136
         DESTINATION ${CMAKE_BINARY_DIR}
133
137
         FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE