-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
27 lines (19 loc) · 1.12 KB
/
CMakeLists.txt
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
# Parity with main FGPU2 CMake
cmake_minimum_required(VERSION 3.18...3.25 FATAL_ERROR)
project(FLAMEGPU2_VISUALISER LANGUAGES NONE)
# Don't create installation scripts (and hide CMAKE_INSTALL_PREFIX from cmake-gui)
set(CMAKE_SKIP_INSTALL_RULES TRUE)
set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE INTERNAL "" FORCE)
# Ensure this is not an in-source build
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/OutOfSourceOnly.cmake)
# Define some CMake Options which apply to all (sub) projects
# Option to promote compilation warnings to error, useful for strict CI
option(FLAMEGPU_WARNINGS_AS_ERRORS "Promote compilation warnings to errors" OFF)
# Option to group CMake generated projects into folders in supported IDEs
option(CMAKE_USE_FOLDERS "Enable folder grouping of projects in IDEs." ON)
mark_as_advanced(CMAKE_USE_FOLDERS)
# Add a new cmake option, to allow lint_only configurations.
option(FLAMEGPU_ALLOW_LINT_ONLY "Allow the project to be configured for lint-only builds" OFF)
mark_as_advanced(FLAMEGPU_ALLOW_LINT_ONLY)
# Add the src subdirectory cmake project.
add_subdirectory(src "${PROJECT_BINARY_DIR}/FLAMEGPU_visualiser")