# ----------------------------------------------------------------------------
+# OpenCV compiler and linker options
+# ----------------------------------------------------------------------------
+include(cmake/OpenCVCompilerOptions.cmake REQUIRED)
+
+# In case of Makefiles if the user does not setup CMAKE_BUILD_TYPE, assume it's Release:
+if(CMAKE_GENERATOR MATCHES "Makefiles" AND "${CMAKE_BUILD_TYPE}" STREQUAL "")
+ set(CMAKE_BUILD_TYPE Release)
+endif()
+
+
+# ----------------------------------------------------------------------------
# CHECK FOR SYSTEM LIBRARIES, OPTIONS, ETC..
# ----------------------------------------------------------------------------
if(UNIX)
endif()
endif()
-# ----------------------------------------------------------------------------
-# OpenCV compiler and linker options
-# ----------------------------------------------------------------------------
-include(cmake/OpenCVCompilerOptions.cmake REQUIRED)
-
-# In case of Makefiles if the user does not setup CMAKE_BUILD_TYPE, assume it's Release:
-if(CMAKE_GENERATOR MATCHES "Makefiles" AND "${CMAKE_BUILD_TYPE}" STREQUAL "")
- set(CMAKE_BUILD_TYPE Release)
-endif()
# ----------------------------------------------------------------------------
# Solution folders:
# Extra OpenCV targets: uninstall, package_source, perf, etc.
include(cmake/OpenCVExtraTargets.cmake REQUIRED)
+
# ----------------------------------------------------------------------------
# Process subdirectories
# ----------------------------------------------------------------------------
add_subdirectory(samples)
endif()
+
# ----------------------------------------------------------------------------
# Finalization: generate configuration-based files
# ----------------------------------------------------------------------------
# Generate OpenCVŠ”onfig.cmake and OpenCVConfig-version.cmake for cmake projects
include(cmake/OpenCVGenConfig.cmake REQUIRED)
+
# ----------------------------------------------------------------------------
# Summary:
# ----------------------------------------------------------------------------