#1532 Debug version of python bindings is excluded from install

This commit is contained in:
Andrey Kamaev 2012-03-29 23:10:21 +00:00
parent 2598736ac2
commit 77425edd11

View File

@ -95,13 +95,15 @@ set(cvpymodules ${cv2_target})
if(WIN32)
set(CVPY_PATH "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages")
set(PYTHON_INSTALL_CONFIGURATIONS CONFIGURATIONS Release)
else()
set(CVPY_PATH ${PYTHON_PACKAGES_PATH})
set(PYTHON_INSTALL_CONFIGURATIONS "")
endif()
install(TARGETS ${cvpymodules}
install(TARGETS ${cvpymodules} ${PYTHON_INSTALL_CONFIGURATIONS}
RUNTIME DESTINATION ${CVPY_PATH} COMPONENT main
LIBRARY DESTINATION ${CVPY_PATH} COMPONENT main
ARCHIVE DESTINATION ${CVPY_PATH} COMPONENT main
)
install(FILES src2/cv.py DESTINATION ${CVPY_PATH} COMPONENT main)
install(FILES src2/cv.py ${PYTHON_INSTALL_CONFIGURATIONS} DESTINATION ${CVPY_PATH} COMPONENT main)