Merge pull request #718 from apavlenko:java_tests_fix
[profile/ivi/opencv.git] / cmake / OpenCVExtraTargets.cmake
1 # ----------------------------------------------------------------------------
2 #   Uninstall target, for "make uninstall"
3 # ----------------------------------------------------------------------------
4 CONFIGURE_FILE(
5   "${OpenCV_SOURCE_DIR}/cmake/templates/cmake_uninstall.cmake.in"
6   "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
7   IMMEDIATE @ONLY)
8
9 ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
10 if(ENABLE_SOLUTION_FOLDERS)
11   set_target_properties(uninstall PROPERTIES FOLDER "CMakeTargets")
12 endif()
13
14
15 # ----------------------------------------------------------------------------
16 # target building all OpenCV modules
17 # ----------------------------------------------------------------------------
18 add_custom_target(opencv_modules)
19 if(ENABLE_SOLUTION_FOLDERS)
20   set_target_properties(opencv_modules PROPERTIES FOLDER "extra")
21 endif()
22
23
24 # ----------------------------------------------------------------------------
25 # targets building all tests
26 # ----------------------------------------------------------------------------
27 if(BUILD_TESTS)
28   add_custom_target(opencv_tests)
29   if(ENABLE_SOLUTION_FOLDERS)
30     set_target_properties(opencv_tests PROPERTIES FOLDER "extra")
31   endif()
32 endif()
33 if(BUILD_PERF_TESTS)
34   add_custom_target(opencv_perf_tests)
35   if(ENABLE_SOLUTION_FOLDERS)
36     set_target_properties(opencv_perf_tests PROPERTIES FOLDER "extra")
37   endif()
38 endif()