Ticket #24503: patch-interfaces_python_CMakeLists.txt.diff
File patch-interfaces_python_CMakeLists.txt.diff, 1.2 KB (added by stromnov (Andrey Stromnov), 15 years ago) |
---|
-
interfaces/python/CMakeLists.txt
old new 23 23 24 24 set(the_target "cvpy") 25 25 add_library(${the_target} ${lib_srcs} ${lib_hdrs} ${lib_int_hdrs} ${CMAKE_CURRENT_BINARY_DIR}/generated0.i) 26 target_link_libraries(${the_target} ${PYTHON_LIBRARIES} cxcore cv cvaux highgui)26 target_link_libraries(${the_target} -F@@FRAMEWORKS_DIR@@ ${PYTHON_LIBRARIES} cxcore cv cvaux highgui) 27 27 set_target_properties(${the_target} PROPERTIES PREFIX "") 28 28 set_target_properties(${the_target} PROPERTIES OUTPUT_NAME "cv") 29 29 … … 32 32 OUTPUT_VARIABLE CVPY_SUFFIX 33 33 OUTPUT_STRIP_TRAILING_WHITESPACE) 34 34 35 set_target_properties(${the_target} PROPERTIES SUFFIX ${CVPY_SUFFIX})35 set_target_properties(${the_target} PROPERTIES SUFFIX ".dylib") 36 36 37 37 set(cvpy_files cv${CVPY_SUFFIX}) 38 38 … … 43 43 ARCHIVE DESTINATION "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages" COMPONENT main 44 44 ) 45 45 else() 46 install(FILES ${LIBRARY_OUTPUT_PATH}/cv. soDESTINATION ${PYTHON_PACKAGES_PATH})46 install(FILES ${LIBRARY_OUTPUT_PATH}/cv.dylib DESTINATION ${PYTHON_PACKAGES_PATH}) 47 47 endif()