-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (27 loc) · 769 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
33 lines (27 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(octrees-benchmark LANGUAGES C CXX)
# Configure CMake
message("Configuring CMake ...")
include(cmake/CMakeConfig.cmake)
message("CMake configured!\n")
# Handle sources
message("Handling sources ...")
include(cmake/CMakeSources.cmake)
message("Sources handled!\n")
# Load libraries
message("Loading libraries ...")
include(cmake/CMakeLibraries.cmake)
message("Libraries loaded!\n")
# Build executable
message("Building ${PROJECT_NAME} ...")
include(cmake/CMakeBuildExec.cmake)
message("Project built!\n\n")
# Tests
option(BUILD_TESTS "Build unit tests (download GoogleTest)" ON)
if(BUILD_TESTS)
include(CTest)
enable_testing()
add_subdirectory(tests)
endif()
# Examples
add_subdirectory(examples)