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

  • Committer: Suren A. Chilingaryan
  • Date: 2016-02-28 21:35:47 UTC
  • Revision ID: csa@suren.me-20160228213547-6tcleiizj8cwthda
Altenrative way to detect location where python modules should be installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
swig_add_module(pcipywrap python pcipywrap.i pcipywrap.c)
18
18
swig_link_libraries(pcipywrap ${PYTHON_LIBRARIES} pcilib)
19
19
 
20
 
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)
21
 
install(TARGETS ${SWIG_MODULE_pcipywrap_REAL_NAME} DESTINATION ${PYTHON_SITE_PACKAGES})
22
 
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pcipywrap.py DESTINATION ${PYTHON_SITE_PACKAGES})
 
20
 
 
21
install(TARGETS ${SWIG_MODULE_pcipywrap_REAL_NAME} DESTINATION ${PYTHON_INSTALL_DIR})
 
22
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pcipywrap.py DESTINATION ${PYTHON_INSTALL_DIR})
23
23
 
24
24
if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
25
25
    file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/server.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})