-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
138 lines (106 loc) · 2.85 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Copyright Matus Chochlik.
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt
#
cmake_minimum_required(VERSION 3.10)
include(config/Policies.cmake)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_DEBUG_POSTFIX d)
project(OGLplus)
set(OGLPLUS_TARGET_PREFIX)
file(STRINGS VERSION OGLPLUS_VERSION)
include(config/Defaults.cmake)
message(
DEPRECATION
"Thanks for checking out oglplu2, the development of this project "
"continues in modularized form in the eagine-all repository at "
"https://github.com/matus-chochlik/eagine-all"
)
if(NOT ${CONFIG_INFO_ONLY})
include(config/BuildType.cmake)
include(config/StaticAnalysis.cmake)
include(config/Compiler.cmake)
include(config/CppFeature.cmake)
include(config/LowProfile.cmake)
include(config/Jobs.cmake)
endif()
include(config/Tools.cmake)
include(config/FindThreads.cmake)
include(config/FindGZip.cmake)
include(config/FindValgrind.cmake)
include(config/FindStacktrace.cmake)
include(config/FindBoostSpirit.cmake)
include(config/CommonLibs.cmake)
include(config/CommonFindMod.cmake)
# GL-libraries
include(config/FindGL.cmake)
include(config/FindGLES3.cmake)
include(config/FindGLEW.cmake)
include(config/FindGL3W.cmake)
include(config/FindGLX.cmake)
include(config/FindGLFW.cmake)
include(config/FindGLFW3.cmake)
include(config/FindGLUT.cmake)
include(config/FindSDL.cmake)
include(config/FindWXGL.cmake)
include(config/FindQT5GL.cmake)
include(config/FindGLM.cmake)
# Systemd
include(config/FindSystemd.cmake)
# ZLIB
include(config/FindZLIB.cmake)
# SSL
include(config/FindSSL.cmake)
# PNG
include(config/FindPNG.cmake)
# EGL
include(config/FindEGL.cmake)
# OpenAL
include(config/FindAL.cmake)
include(config/Baking.cmake)
include(config/Embed.cmake)
include(config/PKI.cmake)
# configure GL API and Context-init libraries
include(config/ConfigGL.cmake)
# if we only want the configuration info
if(${CONFIG_INFO_ONLY})
add_subdirectory("config/info")
return()
endif()
# now create the site-configuration headers
include(config/SiteConfig.cmake)
include(config/GitInfo.cmake)
# re-create the site-configuration header
include(config/SiteConfig.cmake)
# third party libraries
add_subdirectory("third_party")
# tools, textures, etc.
add_subdirectory("source")
# assets
add_subdirectory("assets")
# examples
if(NOT ${NO_EXAMPLES})
add_subdirectory("example")
endif()
# tests
if(NOT ${NO_TESTS})
add_subdirectory("test")
endif()
add_subdirectory("config")
# install the headers
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
DESTINATION include
)
# install the implementation inline files
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/implement/
DESTINATION include
)
# install the generated headers
install(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/
DESTINATION include
)
add_subdirectory("doc")