-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathCMakeLists.txt
54 lines (39 loc) · 1.48 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# GUNDAM project CMake main file
#
# cmake_minimum_required() should be called prior to this top-level project()
# 3.10 minimum a priori. Taking a lower version as min will make recent CMake
# version complain about the deprecation version older than 3.10.
# Might require higher version for specific features.
cmake_minimum_required( VERSION 3.10 FATAL_ERROR )
# Define project
project( GUNDAM )
# colored messages
include( ${CMAKE_SOURCE_DIR}/cmake/utils/cmessage.cmake )
# define cmake options
include( ${CMAKE_SOURCE_DIR}/cmake/options.cmake )
# git version checking
include( ${CMAKE_SOURCE_DIR}/cmake/version.cmake )
# checking dependencies
include( ${CMAKE_SOURCE_DIR}/cmake/dependencies.cmake )
# setup compiler options
include( ${CMAKE_SOURCE_DIR}/cmake/compiler.cmake )
# setting up submodule libraries
include( ${CMAKE_SOURCE_DIR}/cmake/submodules.cmake )
# defining GUNDAM modules
include( ${CMAKE_SOURCE_DIR}/cmake/modules.cmake )
# defining GUNDAM applications
include( ${CMAKE_SOURCE_DIR}/cmake/applications.cmake )
# defining GUNDAM tests
include( ${CMAKE_SOURCE_DIR}/cmake/tests.cmake )
message("")
cmessage( WARNING "Identified GUNDAM version: ${GUNDAM_FULL_VERSION_STR}" )
# A command that works to compile gundam from any sub-directory. You
# can get this aliased to "gundam-build" by sourcing
#
# . "$(git rev-parse --show-toplevel)/cmake/scripts/gundam-setup.sh"
#
# That runs:
# Local Variables:
# compile-command:"$(git rev-parse --show-toplevel)/cmake/gundam-build.sh"
# End: