File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.28)
22
3- project (glomap VERSION 1.0.0)
4-
5- set (CMAKE_CXX_STANDARD 17)
6- set (CMAKE_CXX_STANDARD_REQUIRED ON )
7-
8- set_property (GLOBAL PROPERTY GLOBAL_DEPENDS_NO_CYCLES ON )
9-
103option (CUDA_ENABLED "Whether to enable CUDA, if available" ON )
114option (TESTS_ENABLED "Whether to build test binaries" OFF )
125option (ASAN_ENABLED "Whether to enable AddressSanitizer flags" OFF )
136option (CCACHE_ENABLED "Whether to enable compiler caching, if available" ON )
147option (FETCH_COLMAP "Whether to use COLMAP with FetchContent or with self-installed software" ON )
158option (FETCH_POSELIB "Whether to use PoseLib with FetchContent or with self-installed software" ON )
169
17- include (cmake/FindDependencies.cmake)
18-
1910# Propagate options to vcpkg manifest.
2011if (CUDA_ENABLED)
2112 list (APPEND VCPKG_MANIFEST_FEATURES "cuda" )
2213endif ()
2314
15+ # Initialize the project.
16+ project (glomap VERSION 1.0.0)
17+
18+ set (CMAKE_CXX_STANDARD 17)
19+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
20+
21+ set_property (GLOBAL PROPERTY GLOBAL_DEPENDS_NO_CYCLES ON )
22+
23+ include (cmake/FindDependencies.cmake)
24+
2425if (TESTS_ENABLED)
2526 enable_testing ()
2627endif ()
4445 message (STATUS "Disabling ccache support" )
4546endif ()
4647
48+
4749if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
4850 # Some fixes for the Glog library.
4951 add_definitions ("-DGLOG_USE_GLOG_EXPORT" )
You can’t perform that action at this time.
0 commit comments