-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (25 loc) · 1.39 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
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.17)
project(sandbox)
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# GLOBAL SETTINGS :::::::::::::::::::::::::::::::::::::::::::::::::::::::
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# make a bin folder to host all the executables
make_directory(${PROJECT_SOURCE_DIR}/bin)
make_directory(${PROJECT_SOURCE_DIR}/bin/debug)
make_directory(${PROJECT_SOURCE_DIR}/bin/release)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${PROJECT_SOURCE_DIR}/bin/debug")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${PROJECT_SOURCE_DIR}/bin/release")
set(COMMON_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/common")
set(COMMON_DATA_DIRS "${CMAKE_CURRENT_LIST_DIR}/data")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# OPTIONS :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
option(USE_OPENGL "Use OpenGL" OFF)
option(USE_BOOST "Use Boost" OFF)
option(USE_VTK "Use VTK" OFF)
option(USE_EIGEN "Use Eigen" OFF)
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# SUBDIRECTORIES ::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
add_subdirectory("src")