OpenCVExtraTargets.cmake 1.39 KB
Newer Older
1 2 3 4 5 6
# ----------------------------------------------------------------------------
#   Uninstall target, for "make uninstall"
# ----------------------------------------------------------------------------
CONFIGURE_FILE(
  "${OpenCV_SOURCE_DIR}/cmake/templates/cmake_uninstall.cmake.in"
  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
7
  @ONLY)
8 9

ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
10 11 12
if(ENABLE_SOLUTION_FOLDERS)
  set_target_properties(uninstall PROPERTIES FOLDER "CMakeTargets")
endif()
13

14 15

# ----------------------------------------------------------------------------
16
# target building all OpenCV modules
17 18 19 20 21 22 23 24
# ----------------------------------------------------------------------------
add_custom_target(opencv_modules)
if(ENABLE_SOLUTION_FOLDERS)
  set_target_properties(opencv_modules PROPERTIES FOLDER "extra")
endif()


# ----------------------------------------------------------------------------
25
# targets building all tests
26
# ----------------------------------------------------------------------------
27 28 29
if(BUILD_TESTS)
  add_custom_target(opencv_tests)
  if(ENABLE_SOLUTION_FOLDERS)
30
    set_target_properties(opencv_tests PROPERTIES FOLDER "extra")
31 32 33 34 35
  endif()
endif()
if(BUILD_PERF_TESTS)
  add_custom_target(opencv_perf_tests)
  if(ENABLE_SOLUTION_FOLDERS)
36
    set_target_properties(opencv_perf_tests PROPERTIES FOLDER "extra")
37 38
  endif()
endif()