CMakeLists.txt.2.patch

stathis --, 2010-11-30 12:53 am

Download (1.1 kB)

 
CMakeLists.txt.new 2010-11-30 01:43:45.531250000 +0200
1100 1100
    exec_program(mkdir ARGS "-p \"${CMAKE_BINARY_DIR}/win-install/\"" OUTPUT_VARIABLE RET_VAL)
1101 1101
    configure_file("${CMAKE_CURRENT_SOURCE_DIR}/OpenCVConfig.cmake.in" "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake" IMMEDIATE @ONLY)
1102 1102

  
1103
    # Configure the OpenCVConfig.cmake file to have the right paths pointing to the install directory
1104
    configure_file("${CMAKE_CURRENT_SOURCE_DIR}/OpenCVConfig.cmake.in" "${CMAKE_INSTALL_PREFIX}/OpenCVConfig.cmake" IMMEDIATE @ONLY)
1103
    # Install the OpenCVConfig.cmake file which has the right paths pointing to the install directory
1104
    install(FILES "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake" DESTINATION "${CMAKE_INSTALL_PREFIX}/")
1105 1105

  
1106 1106
    # if videoInput support is enabled (which is by default on WIN32) copy the static library required to the installation path
1107 1107
    # DESTINATION could also be "${CMAKE_INSTALL_PREFIX}/lib") to simplify dev environment setup of client applications