~paparazzi-uav/paparazzi/v5.0-manual

« back to all changes in this revision

Viewing changes to sw/ext/opencv_bebop/opencv/cmake/OpenCVExtraTargets.cmake

  • Committer: Paparazzi buildbot
  • Date: 2016-05-18 15:00:29 UTC
  • Revision ID: felix.ruess+docbot@gmail.com-20160518150029-e8lgzi5kvb4p7un9
Manual import commit 4b8bbb730080dac23cf816b98908dacfabe2a8ec from v5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
  @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()