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  
    2323
    2424set(the_target "cvpy")
    2525add_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)
     26target_link_libraries(${the_target} -F@@FRAMEWORKS_DIR@@ ${PYTHON_LIBRARIES} cxcore cv cvaux highgui)
    2727set_target_properties(${the_target} PROPERTIES PREFIX "")
    2828set_target_properties(${the_target} PROPERTIES OUTPUT_NAME "cv")
    2929
     
    3232                OUTPUT_VARIABLE CVPY_SUFFIX
    3333                OUTPUT_STRIP_TRAILING_WHITESPACE)
    3434
    35 set_target_properties(${the_target} PROPERTIES SUFFIX ${CVPY_SUFFIX})
     35set_target_properties(${the_target} PROPERTIES SUFFIX ".dylib")
    3636
    3737set(cvpy_files cv${CVPY_SUFFIX})
    3838
     
    4343            ARCHIVE DESTINATION "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages" COMPONENT main
    4444            )
    4545else()
    46     install(FILES ${LIBRARY_OUTPUT_PATH}/cv.so DESTINATION ${PYTHON_PACKAGES_PATH})
     46    install(FILES ${LIBRARY_OUTPUT_PATH}/cv.dylib DESTINATION ${PYTHON_PACKAGES_PATH})
    4747endif()