-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
68 lines (49 loc) · 2.25 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# CMAKE
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# CMake Version
include( "cmake/constants.cmake" )
cmake_minimum_required( VERSION ${PROJECT_CMAKE_VERSION} )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# CONFIGS
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
include( "${APP_CMAKE_DIR}/globals.cmake" )
include( "${APP_CMAKE_DIR}/platform.cmake" )
include( "${APP_CMAKE_DIR}/build_types.cmake" )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# PROJECT
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
project( "Orbit" VERSION ${APP_VERSION} LANGUAGES C CXX )
# Enable Position Independent Code
set( CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON )
set( CMAKE_POSITION_INDEPENDENT_CODE ON )
# C++ Version
set ( CMAKE_CXX_STANDARD ${CXX_VERSION} )
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# MODULES
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Engine.Core
include( "${ENGINE_SRC_DIR}/core/module.cmake" )
# Engine.Platform
include( "${ENGINE_SRC_DIR}/${PLATFORM}/module.cmake" )
# Engine.GL
include( "${ENGINE_SRC_DIR}/gl/module.cmake" )
# App.Core
include( "${APP_SRC_DIR}/core/module.cmake" )
# App.Platform
include( "${APP_SRC_DIR}/${PLATFORM}/module.cmake" )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# BUILD
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
include( "${APP_SRC_DIR}/${PLATFORM}/build.cmake" )
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# LIBRARIES
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Import and Link with libraries
include( "${APP_CMAKE_DIR}/${PLATFORM}_libs.cmake" )
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =