Skip to content

Commit 9948e60

Browse files
committed
d
1 parent 04dc0a8 commit 9948e60

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

CMakeLists.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
cmake_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-
103
option(CUDA_ENABLED "Whether to enable CUDA, if available" ON)
114
option(TESTS_ENABLED "Whether to build test binaries" OFF)
125
option(ASAN_ENABLED "Whether to enable AddressSanitizer flags" OFF)
136
option(CCACHE_ENABLED "Whether to enable compiler caching, if available" ON)
147
option(FETCH_COLMAP "Whether to use COLMAP with FetchContent or with self-installed software" ON)
158
option(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.
2011
if(CUDA_ENABLED)
2112
list(APPEND VCPKG_MANIFEST_FEATURES "cuda")
2213
endif()
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+
2425
if (TESTS_ENABLED)
2526
enable_testing()
2627
endif()
@@ -44,6 +45,7 @@ else()
4445
message(STATUS "Disabling ccache support")
4546
endif()
4647

48+
4749
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
4850
# Some fixes for the Glog library.
4951
add_definitions("-DGLOG_USE_GLOG_EXPORT")

0 commit comments

Comments
 (0)