-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
300 lines (269 loc) · 14.2 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
#
# This file is part of the open source part of the
# Platform for Algorithm Development and Rendering (PADrend).
# Web page: http://www.padrend.de/
# Copyright (C) 2012-2013 Benjamin Eikel <[email protected]>
#
# PADrend consists of an open source part and a proprietary part.
# The open source part of PADrend is subject to the terms of the Mozilla
# Public License, v. 2.0. You should have received a copy of the MPL along
# with this library; see the file LICENSE. If not, you can obtain one at
# http://mozilla.org/MPL/2.0/.
#
cmake_minimum_required(VERSION 2.8.8)
execute_process(
COMMAND ${CMAKE_C_COMPILER} -dumpmachine
OUTPUT_VARIABLE ARCH_TRIPLET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${ARCH_TRIPLET}" CACHE PATH "Install dir")
set(TOOLCHAIN_FILE "${CMAKE_CURRENT_BINARY_DIR}/Toolchain.cmake")
configure_file(${CMAKE_CURRENT_LIST_DIR}/Toolchain.cmake.in ${TOOLCHAIN_FILE} @ONLY)
include(ExternalProject)
option(BUILD_ZLIB "Build the zlib library (strongly recommended; required by several other libraries)" ON)
if(BUILD_ZLIB)
ExternalProject_Add(EP_ZLIB
URL http://download.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz
URL_MD5 "1c9f62f0778697a09d36121ead88e08e"
PATCH_COMMAND patch -p0 < ${CMAKE_CURRENT_LIST_DIR}/zlib-CMakeLists.txt-OUTPUT_NAME.patch
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release
)
endif()
if(WIN32)
option(BUILD_CPPUNIT "Build the CppUnit library (optional; used for unit testing)" ON)
if(BUILD_CPPUNIT)
ExternalProject_Add(EP_LIBCPPUNIT
URL http://dev-www.libreoffice.org/src/cppunit-1.13.2.tar.gz
URL_MD5 "d1c6bdd5a76c66d2c38331e2d287bc01"
PATCH_COMMAND patch -p0 < ${CMAKE_CURRENT_LIST_DIR}/libcppunit-TestAssert.h-sprintf_s.patch
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static --disable-doxygen CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} LIBS=-lstdc++
INSTALL_DIR ${INSTALL_DIR}
)
endif()
endif()
option(BUILD_CATCH2 "Build the Catch2 library (optional; used for unit testing)" OFF)
if(BUILD_CATCH2)
ExternalProject_Add(EP_CATCH2
URL https://github.com/catchorg/Catch2/archive/v2.0.1.tar.gz
URL_MD5 "2080f4696579351d9323b3b5a8c3c71b"
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release
INSTALL_DIR ${INSTALL_DIR}
)
endif()
option(BUILD_CURL "Build the cURL library (recommended; used for Util's NetProvider)" ON)
if(BUILD_CURL)
ExternalProject_Add(EP_LIBCURL
DEPENDS EP_ZLIB
URL https://curl.haxx.se/download/curl-7.56.1.tar.gz
URL_MD5 "48ba7bd7b363b40cd446d1e7b4be9920"
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static --disable-manual --with-zlib=<INSTALL_DIR> CC=${CMAKE_C_COMPILER} LD=${CMAKE_LINKER}
INSTALL_DIR ${INSTALL_DIR}
)
endif()
option(BUILD_DETRI "Build the Detri library (optional; only used for 3D Delaunay triangulations)" ON)
if(BUILD_DETRI)
ExternalProject_Add(EP_LIBDETRI
URL ${CMAKE_CURRENT_LIST_DIR}/Detri_2.6.b.tar.gz
URL_MD5 "e8e6de7710e96c162e549e4b38433b1b"
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release
)
endif()
option(BUILD_GLEW "Build the GLEW library (required; needed for OpenGL functions and extensions)" ON)
if(BUILD_GLEW)
ExternalProject_Add(EP_LIBGLEW
URL http://downloads.sourceforge.net/project/glew/glew/2.1.0/glew-2.1.0.tgz
URL_MD5 "b2ab12331033ddfaa50dc39345343980"
PATCH_COMMAND patch -p0 < ${CMAKE_CURRENT_LIST_DIR}/libglew-Makefile.patch
CONFIGURE_COMMAND ""
BUILD_COMMAND GLEW_DEST=<INSTALL_DIR> CC=${CMAKE_C_COMPILER} ${CMAKE_MAKE_PROGRAM}
INSTALL_DIR ${INSTALL_DIR}
INSTALL_COMMAND GLEW_DEST=<INSTALL_DIR> ${CMAKE_MAKE_PROGRAM} install
BUILD_IN_SOURCE 1
)
endif()
#
# If the build fails with linker errors when building OpenAL (e.g.
# "undefined reference to `___sync_sub_and_fetch_4'"), add "-march=i586" to
# CMAKE_C_FLAGS and try it again.
#
if(NOT APPLE)
option(BUILD_OPENAL "Build the OpenAL library (optional; used for audio output; if possible, use an OpenAL library provided by the operating system instead)" ON)
if(BUILD_OPENAL)
ExternalProject_Add(EP_LIBOPENAL
URL https://github.com/kcat/openal-soft/archive/openal-soft-1.19.1.tar.gz
URL_MD5 "616ecdccb6fb4ac42a04d74f54c9a188"
#PATCH_COMMAND patch -p0 < ${CMAKE_CURRENT_LIST_DIR}/openal-CMakeLists.txt.patch
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release -DUTILS:BOOL=OFF -DEXAMPLES:BOOL=OFF -DMMDEVAPI:BOOL=OFF -DALSOFT_UTILS:BOOL=OFF -DALSOFT_TESTS:BOOL=OFF -DALSOFT_EXAMPLES:BOOL=OFF -DALSOFT_NO_CONFIG_UTIL:BOOL=ON -DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
)
endif()
endif()
option(BUILD_LPSOLVE "Build the lp_solve library (optional; only used for MAR)" ON)
if(BUILD_LPSOLVE)
ExternalProject_Add(EP_LIBLPSOLVE
URL http://downloads.sourceforge.net/lpsolve/lp_solve_5.5.2.5_source.tar.gz
URL_MD5 "3be57261fc41dd8e210f54017220d5f7"
PATCH_COMMAND cp ${CMAKE_CURRENT_LIST_DIR}/lpsolve-CMakeLists.txt CMakeLists.txt && cp ${CMAKE_CURRENT_LIST_DIR}/lpsolve-lpsolveConfig.cmake.in lpsolveConfig.cmake.in
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release
)
endif()
option(BUILD_LIBPNG "Build the libpng library (recommended; used to load and save PNG images; required by FreeType and SDL2_image)" ON)
if(BUILD_LIBPNG)
ExternalProject_Add(EP_LIBPNG
DEPENDS EP_ZLIB
URL http://download.sourceforge.net/libpng/libpng-1.6.34.tar.gz
URL_MD5 "03fbc5134830240104e96d3cda648e71"
PATCH_COMMAND patch -p0 < ${CMAKE_CURRENT_LIST_DIR}/libpng-CMakeLists.txt.patch
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release -DPNG_STATIC:BOOL=OFF -DPNG_TESTS:BOOL=OFF -DSKIP_INSTALL_EXECUTABLES:BOOL=ON -DSKIP_INSTALL_FILES:BOOL=ON
)
endif()
option(BUILD_LIBFREETYPE "Build the FreeType library (recommended; used for rendering custom fonts)" ON)
if(BUILD_LIBFREETYPE)
ExternalProject_Add(EP_LIBFREETYPE
DEPENDS EP_ZLIB EP_LIBPNG
URL http://downloads.sourceforge.net/project/freetype/freetype2/2.8.1/freetype-2.8.1.tar.gz
URL_MD5 "c947b6b1c513e814cc9d7617a44bc6cf"
INSTALL_DIR ${INSTALL_DIR}
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static --without-png CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
)
endif()
option(BUILD_LIBSDL2 "Build the SDL2, SDL2_image, and SDL2_net libraries (recommended; required by Util to create windows, load images, networking; required by Sound)" ON)
if(BUILD_LIBSDL2)
ExternalProject_Add(EP_LIBJPEG
URL http://www.ijg.org/files/jpegsrc.v9b.tar.gz
URL_MD5 "6a9996ce116ec5c52b4870dbcd6d3ddb"
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static CC=${CMAKE_C_COMPILER}
INSTALL_DIR ${INSTALL_DIR}
)
ExternalProject_Add(EP_LIBTIFF
DEPENDS EP_ZLIB EP_LIBJPEG
URL http://download.osgeo.org/libtiff/tiff-4.0.8.tar.gz
URL_MD5 "2a7d1c1318416ddf36d5f6fa4600069b"
PATCH_COMMAND cp libtiff/tif_unix.c libtiff/tif_win32.c
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static --disable-cxx --with-zlib-include-dir=<INSTALL_DIR>/include --with-zlib-lib-dir=<INSTALL_DIR>/lib --with-jpeg-include-dir=<INSTALL_DIR>/include --with-jpeg-lib-dir=<INSTALL_DIR>/lib CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
INSTALL_DIR ${INSTALL_DIR}
)
if(APPLE)
set(SDL_FLAGS --disable-video-x11 --disable-video-carbon --enable-video-cocoa)
endif()
ExternalProject_Add(EP_LIBSDL2
URL http://www.libsdl.org/release/SDL2-2.0.7.tar.gz
URL_MD5 "cdb071009d250e1782371049f0d5ca42"
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-directx ${SDL_FLAGS} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
INSTALL_DIR ${INSTALL_DIR}
)
set(SDL_CFLAGS "-I<INSTALL_DIR>/include")
ExternalProject_Add(EP_LIBSDL2_IMAGE
DEPENDS EP_LIBJPEG EP_LIBPNG EP_LIBTIFF EP_LIBSDL2
URL http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.2.tar.gz
URL_MD5 "d0a83b9a2ca8371a3c85aefe402ae680"
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static --disable-jpg-shared --disable-png-shared --disable-tif-shared --disable-webp --with-sdl-prefix=<INSTALL_DIR> CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} "CFLAGS=${SDL_CFLAGS}"
INSTALL_DIR ${INSTALL_DIR}
)
# Copy SDL.dll for executing sdl2-config
if(WIN32)
ExternalProject_Add_Step(EP_LIBSDL2_IMAGE EP_LIBSDL2_IMAGE_COPY_SDL_DLL
COMMAND ${CMAKE_COMMAND} -E copy ${INSTALL_DIR}/bin/SDL2.dll <BINARY_DIR>
DEPENDERS configure
)
endif()
ExternalProject_Add(EP_LIBSDL2_NET
DEPENDS EP_LIBSDL2
URL http://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz
URL_MD5 "5c1d9d1cfa63301b141cb5c0de2ea7c4"
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static --with-sdl-prefix=<INSTALL_DIR> CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} "CFLAGS=${SDL_CFLAGS}"
INSTALL_DIR ${INSTALL_DIR}
)
# Copy SDL.dll for executing sdl2-config
if(WIN32)
ExternalProject_Add_Step(EP_LIBSDL2_NET EP_LIBSDL2_NET_COPY_SDL_DLL
COMMAND ${CMAKE_COMMAND} -E copy ${INSTALL_DIR}/bin/SDL2.dll <BINARY_DIR>
DEPENDERS configure
)
endif()
endif()
option(BUILD_SQLITE "Build the SQLite library (recommended; used for Util's DBFSProvider)" ON)
if(BUILD_SQLITE)
ExternalProject_Add(EP_LIBSQLITE
URL http://www.sqlite.org/2017/sqlite-autoconf-3210000.tar.gz
URL_MD5 "7913de4c3126ba3c24689cb7a199ea31"
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
INSTALL_DIR ${INSTALL_DIR}
)
endif()
option(BUILD_LIBSERIAL "Build the Serial library (optional; used for optional Util::Serial-functions; https://github.com/wjwwood/serial)" OFF)
if(BUILD_LIBSERIAL)
ExternalProject_Add(EP_LIBSERIAL
URL https://github.com/wjwwood/serial/archive/1.2.1.tar.gz
URL_MD5 "b6d9ebdf821654715656577652b61b64"
PATCH_COMMAND cp ${CMAKE_CURRENT_LIST_DIR}/libserial-CMakeLists.txt CMakeLists.txt && cp ${CMAKE_CURRENT_LIST_DIR}/libserial-serialConfig.cmake.in serialConfig.cmake.in
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release
INSTALL_DIR ${INSTALL_DIR}
)
endif()
option(BUILD_LIBXML2 "Build the libxml2 library (optional; alternative to the built-in XML parser and required by OpenCOLLADA)" ON)
if(BUILD_LIBXML2)
ExternalProject_Add(EP_LIBXML2
DEPENDS EP_ZLIB
URL ftp://xmlsoft.org/libxml2/libxml2-2.9.7.tar.gz
URL_MD5 "896608641a08b465098a40ddf51cefba"
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --host=${ARCH_TRIPLET} --disable-static --without-python --with-zlib=<INSTALL_DIR> CC=${CMAKE_C_COMPILER}
INSTALL_DIR ${INSTALL_DIR}
)
endif()
option(BUILD_LIBOPENCOLLADA "Build the OpenCOLLADA library (optional; import of COLLADA files into MinSG; build takes very long)" OFF)
if(BUILD_LIBOPENCOLLADA)
ExternalProject_Add(EP_LIBPCRE
DEPENDS EP_ZLIB
URL http://download.sourceforge.net/pcre/pcre-8.41.tar.gz
URL_MD5 "2e7896647ee25799cb454fe287ffcd08"
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DPCRE_BUILD_PCRECPP:BOOL=OFF -DPCRE_SUPPORT_UTF:BOOL=ON -DPCRE_BUILD_PCREGREP:BOOL=OFF -DPCRE_BUILD_TESTS:BOOL=OFF -DCMAKE_CXX_STANDARD_LIBRARIES:STRING=-lstdc++
)
if(UNIX)
set(OPENCOLLADA_FLAGS "-DUSE_SHARED:BOOL=ON")
else()
set(OPENCOLLADA_FLAGS "-DUSE_SHARED:BOOL=OFF")
endif()
ExternalProject_Add(EP_LIBOPENCOLLADA
DEPENDS EP_LIBPCRE EP_LIBXML2 EP_ZLIB
URL https://github.com/KhronosGroup/OpenCOLLADA/archive/v1.6.61.tar.gz
URL_MD5 "aef16d69db7c277d5a351f45d148aaef"
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_LIBXML:BOOL=ON -DUSE_EXPAT:BOOL=OFF ${OPENCOLLADA_FLAGS}
)
endif()
option(BUILD_LIBZIP "Build the libzip library (optional; used for Util's ZIPProvider)" ON)
if(BUILD_LIBZIP)
ExternalProject_Add(EP_LIBZIP
DEPENDS EP_ZLIB
URL https://libzip.org/download/libzip-1.4.0.tar.gz
URL_MD5 "f31cbec30a5fdbbc8a7d4f5f72d719e7"
PATCH_COMMAND patch -p0 < ${CMAKE_CURRENT_LIST_DIR}/libzip-CMakeLists.txt-no_regress.patch
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON
)
endif()
option(BUILD_LIBARCHIVE "Build the libarchive library (optional; used for Util's ArchiveProvider)" ON)
if(BUILD_LIBARCHIVE)
ExternalProject_Add(EP_LIBARCHIVE
DEPENDS EP_ZLIB EP_LIBXML2
URL http://www.libarchive.org/downloads/libarchive-3.3.2.tar.gz
URL_MD5 "4583bd6b2ebf7e0e8963d90879eb1b27"
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release -DENABLE_NETTLE:BOOL=OFF -DENABLE_ICONV:BOOL=OFF -DENABLE_TAR:BOOL=OFF -DENABLE_CPIO:BOOL=OFF -DENABLE_TEST:BOOL=OFF -DENABLE_ACL:BOOL=OFF
)
endif()
option(BUILD_LIBBULLET "Build the Bullet library (optional; used for MinSG's physics extension)" ON)
if(BUILD_LIBBULLET)
ExternalProject_Add(EP_LIBBULLET
URL https://github.com/bulletphysics/bullet3/archive/2.87.tar.gz
URL_MD5 "7566fc00d925a742e6f7ec7ba2d352de"
INSTALL_DIR ${INSTALL_DIR}
CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${TOOLCHAIN_FILE} -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=ON -DUSE_GRAPHICAL_BENCHMARK:BOOL=OFF -DBUILD_CPU_DEMOS:BOOL=OFF -DUSE_GLUT:BOOL=OFF -DBUILD_BULLET2_DEMOS:BOOL=OFF -DBUILD_OPENGL3_DEMOS:BOOL=OFF -DBUILD_EXTRAS:BOOL=OFF -DBUILD_UNIT_TESTS:BOOL=OFF -DINSTALL_LIBS:BOOL=ON -DCMAKE_EXE_LINKER_FLAGS:STRING=-lstdc++ -DCMAKE_MODULE_LINKER_FLAGS:STRING=-lstdc++ -DCMAKE_SHARED_LINKER_FLAGS:STRING=-lstdc++ -DCMAKE_CXX_STANDARD_LIBRARIES:STRING=-lstdc++
)
endif()