-
Notifications
You must be signed in to change notification settings - Fork 44
/
CMakeLists.txt
41 lines (33 loc) · 1011 Bytes
/
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
34
35
36
37
38
39
40
41
# CMake project
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(helios LANGUAGES CXX)
set(PROJECT_NAME "Helios++")
# Check last git hash
include(cmake/CMakeGitHash.cmake)
GitHashSetup()
# Configure CMake
message("Configuring CMake ...")
include(cmake/CMakeConfig.cmake)
message("CMake configured!\n\n")
# Handle sources
message("Handling sources ...")
include(cmake/CMakeSources.cmake)
message("Sources handled!\n\n")
# Load libraries
message("Loading libraries ...")
include(cmake/CMakeLibraries.cmake)
message("Libraries loaded!\n\n")
# Python bindings
message("Configuring python bindings ...")
include(cmake/CMakePybinds.cmake)
message("Python bindings configured!\n\n")
# Custom debug flags
message("Handling debug flags (if any) ...")
include(cmake/CMakeDebugFlags.cmake)
message("Debug flags handled!\n\n")
# Build executable
message("Building Helios++ ...")
include(cmake/CMakeBuildExec.cmake)
message("Helios++ built!\n\n")
# CMake finished
message("${PROJECT_NAME} CMake finished!")