2012-02-03 19:26:49 +08:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Uninstall target, for "make uninstall"
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
CONFIGURE_FILE(
|
|
|
|
"${OpenCV_SOURCE_DIR}/cmake/templates/cmake_uninstall.cmake.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
2014-01-29 23:34:02 +08:00
|
|
|
@ONLY)
|
2012-02-03 19:26:49 +08:00
|
|
|
|
|
|
|
ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
2012-03-03 23:49:23 +08:00
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
|
|
|
set_target_properties(uninstall PROPERTIES FOLDER "CMakeTargets")
|
|
|
|
endif()
|
2012-08-07 17:29:43 +08:00
|
|
|
|
2012-02-03 19:26:49 +08:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
2013-03-26 01:57:53 +08:00
|
|
|
# target building all OpenCV modules
|
2012-03-03 23:49:23 +08:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
add_custom_target(opencv_modules)
|
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
|
|
|
set_target_properties(opencv_modules PROPERTIES FOLDER "extra")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
2013-03-26 01:57:53 +08:00
|
|
|
# targets building all tests
|
2012-03-03 23:49:23 +08:00
|
|
|
# ----------------------------------------------------------------------------
|
2012-03-02 16:48:33 +08:00
|
|
|
if(BUILD_TESTS)
|
|
|
|
add_custom_target(opencv_tests)
|
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
2012-03-03 23:49:23 +08:00
|
|
|
set_target_properties(opencv_tests PROPERTIES FOLDER "extra")
|
2012-03-02 16:48:33 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(BUILD_PERF_TESTS)
|
|
|
|
add_custom_target(opencv_perf_tests)
|
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
2012-03-03 23:49:23 +08:00
|
|
|
set_target_properties(opencv_perf_tests PROPERTIES FOLDER "extra")
|
2012-03-02 16:48:33 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
2018-01-18 21:37:19 +08:00
|
|
|
|
|
|
|
# Documentation
|
|
|
|
if(BUILD_DOCS)
|
|
|
|
add_custom_target(opencv_docs)
|
|
|
|
add_custom_target(install_docs DEPENDS opencv_docs
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=docs -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
|
|
|
|
endif()
|
2018-02-09 21:17:01 +08:00
|
|
|
|
|
|
|
# Samples
|
|
|
|
if(BUILD_EXAMPLES)
|
|
|
|
add_custom_target(opencv_samples)
|
|
|
|
if(ENABLE_SOLUTION_FOLDERS)
|
|
|
|
set_target_properties(opencv_samples PROPERTIES FOLDER "extra")
|
|
|
|
endif()
|
|
|
|
endif()
|