# Set CMAKE_INCLUDE_DIRS_CONFIGCMAKE to the list of include directories:
# This will expand to, for example, <program files>/OpenCV 1.1.0/include
- set(CMAKE_INCLUDE_DIRS_CONFIGCMAKE "\"\${THIS_OPENCV_CONFIG_PATH}/include\"")
+ set(CMAKE_INCLUDE_DIRS_CONFIGCMAKE "\"\${THIS_OPENCV_CONFIG_PATH}/include\" \"\${THIS_OPENCV_CONFIG_PATH}/include/opencv\"")
# This will expand to, for example, <program files>/OpenCV 1.1.0/lib
set(CMAKE_LIB_DIRS_CONFIGCMAKE "\"\${THIS_OPENCV_CONFIG_PATH}/lib\"")
DESTINATION ${OPENCV_DOC_INSTALL_PATH}
COMPONENT doc
)
+
+ IF (WIN32)
+ # Add the "win-install/OpenCVConfig.cmake" file to the "dev" install component
+ install(FILES
+ "${CMAKE_BINARY_DIR}/win-install/OpenCVConfig.cmake"
+ DESTINATION "."
+ COMPONENT dev
+ )
+
+ # Add debug libs to "dev" install component
+ file(GLOB EXTRA_LIBS_TO_INSTALL "${CMAKE_BINARY_DIR}/lib/Debug/*.lib")
+ install(FILES
+ ${EXTRA_LIBS_TO_INSTALL}
+ DESTINATION "lib"
+ COMPONENT dev
+ )
+ # Add debug DLLs to "dev" install component
+ file(GLOB EXTRA_DLLS_TO_INSTALL "${CMAKE_BINARY_DIR}/bin/Debug/*.dll")
+ install(FILES
+ ${EXTRA_DLLS_TO_INSTALL}
+ DESTINATION "bin"
+ COMPONENT dev
+ )
+ ENDIF(WIN32)
include(${CMAKE_BINARY_DIR}/.cpack/Package.cmake)
# (c) Copyrights 2008 Hartmut Seichter, HIT Lab NZ
#
+SET(CMAKE_INSTALL_DEBUG_LIBRARIES 1)
+INCLUDE(InstallRequiredSystemLibraries)
+
+if(WIN32)
+ # Add "<install_path>/bin" to the system PATH
+ SET(CPACK_NSIS_MODIFY_PATH ON)
+endif(WIN32)
+
set(CPACK_PACKAGE_NAME "OpenCV")
set(CPACK_PACKAGE_VENDOR "OpenCV project opencvlibrary.sourceforge.net")
--- /dev/null
+\r
+INSTRUCTIONS TO BUILD WIN32 PACKAGES WITH CMAKE+CPACK\r
+------------------------------------------------------\r
+\r
+- Install NSIS.\r
+- Generate OpenCV solutions for MSVC using CMake as usual.\r
+- In cmake-gui: \r
+ - Mark BUILD_PACKAGE\r
+ - Mark BUILD_EXAMPLES (If examples are desired to be shipped as binaries...)\r
+ - Unmark ENABLE_OPENMP, since this feature seems to have some issues yet...\r
+ - Mark INSTALL_*_EXAMPLES\r
+- Open the OpenCV solution and build ALL in Debug and Release.\r
+- Build PACKAGE, from the Release configuration. An NSIS installer package will be \r
+ created with both release and debug LIBs and DLLs.\r
+\r
+ \r
+Jose Luis Blanco, 2009/JUL/29\r