-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
493 lines (452 loc) · 15 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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# created by xmake
cmake_minimum_required(VERSION 3.21)
project(y)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_BUILD_TYPE Debug)
#=======================================================================================
# libraries
#=======================================================================================
find_package(PkgConfig REQUIRED)
# lib: zlib (mandatory)
find_package(ZLIB REQUIRED)
list(APPEND DEPS ZLIB::ZLIB)
list(APPEND COMPILE_DEFINITIONS HAS_LIB_ZLIB=1)
# lib: glfw (mandatory)
find_package(glfw3 REQUIRED)
list(APPEND DEPS glfw)
list(APPEND COMPILE_DEFINITIONS HAS_LIB_GLFW=1)
# lib: gl or vulkan (mandatory)
set(GL_OR_VULKAN "gl" CACHE STRING "Use gl or vulkan?")
find_package(OpenGL)
if(OPENGL_FOUND AND NOT APPLE)
list(APPEND GL_OR_VULKAN_FOUND "gl")
endif()
pkg_check_modules(VULKAN vulkan)
if(VULKAN_FOUND)
list(APPEND GL_OR_VULKAN_FOUND "vulkan")
endif()
if(GL_OR_VULKAN_FOUND)
if(NOT ${GL_OR_VULKAN} IN_LIST GL_OR_VULKAN_FOUND)
list(GET GL_OR_VULKAN_FOUND 0 X)
set(GL_OR_VULKAN ${X} CACHE STRING "choose" FORCE)
message(WARNING "Choice for GL_OR_VULKAN invalid, using ${GL_OR_VULKAN} instead")
endif()
else()
message(SEND_ERROR "Neither gl or vulkan found") # or/nor..
set(GL_OR_VULKAN "")
endif()
if(GL_OR_VULKAN STREQUAL "gl")
list(APPEND DEPS OpenGL::OpenGL)
list(APPEND COMPILE_DEFINITIONS HAS_LIB_GL=1)
endif()
if(GL_OR_VULKAN STREQUAL "vulkan")
list(APPEND INCLUDE_DIRECTORIES ${VULKAN_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${VULKAN_LIBRARY_DIRS})
list(APPEND DEPS ${VULKAN_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${VULKAN_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_VULKAN=1)
endif()
# lib: glew (optional)
set(LIB_GLEW_ENABLED true CACHE BOOL "Use glew library?")
pkg_check_modules(GLEW glew)
if(GLEW_FOUND)
else()
set(LIB_GLEW_ENABLED false CACHE BOOL "glew library not found" FORCE)
endif()
if(${LIB_GLEW_ENABLED})
list(APPEND INCLUDE_DIRECTORIES ${GLEW_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${GLEW_LIBRARY_DIRS})
list(APPEND DEPS ${GLEW_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${GLEW_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_GLEW=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_GLEW=0)
endif()
# lib: freetype2 (mandatory)
find_package(Freetype REQUIRED)
list(APPEND DEPS Freetype::Freetype)
list(APPEND COMPILE_DEFINITIONS HAS_LIB_FREETYPE2=1)
# lib: unwind (optional)
set(LIB_UNWIND_ENABLED true CACHE BOOL "Use unwind library?")
pkg_check_modules(LIBUNWIND libunwind)
if(LIBUNWIND_FOUND)
else()
set(LIB_UNWIND_ENABLED false CACHE BOOL "unwind library not found" FORCE)
endif()
if(${LIB_UNWIND_ENABLED})
list(APPEND INCLUDE_DIRECTORIES ${LIBUNWIND_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${LIBUNWIND_LIBRARY_DIRS})
list(APPEND DEPS ${LIBUNWIND_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${LIBUNWIND_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_UNWIND=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_UNWIND=0)
endif()
# lib: dl (optional)
if(WIN32)
list(APPEND COMPILE_DEFINITIONS HAS_LIB_DL=0)
else()
list(APPEND DEPS ${CMAKE_DL_LIBS})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_DL=1)
endif()
# lib: bullet (optional)
set(LIB_BULLET_ENABLED true CACHE BOOL "Use bullet library?")
pkg_check_modules(BULLET bullet)
if(BULLET_FOUND)
else()
set(LIB_BULLET_ENABLED false CACHE BOOL "bullet library not found" FORCE)
endif()
if(${LIB_BULLET_ENABLED})
list(APPEND INCLUDE_DIRECTORIES ${BULLET_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${BULLET_LIBRARY_DIRS})
list(APPEND DEPS ${BULLET_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${BULLET_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_BULLET=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_BULLET=0)
endif()
# lib: openal (optional)
set(LIB_OPENAL_ENABLED true CACHE BOOL "Use openal library?")
find_package(OpenAL)
if(OPENAL_FOUND)
else()
set(LIB_OPENAL_ENABLED false CACHE BOOL "openal library not found" FORCE)
endif()
if(${LIB_OPENAL_ENABLED})
list(APPEND DEPS OpenAL::OpenAL)
list(APPEND COMPILE_DEFINITIONS HAS_LIB_OPENAL=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_OPENAL=0)
endif()
# lib: ogg (optional)
set(LIB_OGG_ENABLED true CACHE BOOL "Use ogg library?")
pkg_check_modules(OGG ogg)
pkg_check_modules(VORBIS vorbis)
pkg_check_modules(VORBISFILE vorbisfile)
pkg_check_modules(VORBISENC vorbisenc)
if(OGG_FOUND AND VORBIS_FOUND AND VORBISFILE_FOUND AND VORBISENC_FOUND)
else()
set(LIB_OGG_ENABLED false CACHE BOOL "ogg library not found" FORCE)
endif()
if(${LIB_OGG_ENABLED})
list(APPEND INCLUDE_DIRECTORIES ${OGG_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${OGG_LIBRARY_DIRS})
list(APPEND DEPS ${OGG_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${OGG_CFLAGS_OTHER})
list(APPEND INCLUDE_DIRECTORIES ${VORBIS_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${VORBIS_LIBRARY_DIRS})
list(APPEND DEPS ${VORBIS_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${VORBIS_CFLAGS_OTHER})
list(APPEND INCLUDE_DIRECTORIES ${VORBISFILE_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${VORBISFILE_LIBRARY_DIRS})
list(APPEND DEPS ${VORBISFILE_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${VORBISFILE_CFLAGS_OTHER})
list(APPEND INCLUDE_DIRECTORIES ${VORBISENC_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${VORBISENC_LIBRARY_DIRS})
list(APPEND DEPS ${VORBISENC_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${VORBISENC_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_OGG=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_OGG=0)
endif()
# lib: shaderc (optional)
set(LIB_SHADERC_ENABLED true CACHE BOOL "Use shaderc library?")
pkg_check_modules(SHADERC shaderc)
if(SHADERC_FOUND)
else()
set(LIB_SHADERC_ENABLED false CACHE BOOL "shaderc library not found" FORCE)
endif()
if(${LIB_SHADERC_ENABLED})
list(APPEND INCLUDE_DIRECTORIES ${SHADERC_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${SHADERC_LIBRARY_DIRS})
list(APPEND DEPS ${SHADERC_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${SHADERC_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_SHADERC=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_SHADERC=0)
endif()
# lib: spirv (optional)
set(LIB_SPIRV_ENABLED true CACHE BOOL "Use spirv library?")
pkg_check_modules(SPIRV spirv)
if(SPIRV_FOUND)
else()
set(LIB_SPIRV_ENABLED false CACHE BOOL "spirv library not found" FORCE)
endif()
if(${LIB_SPIRV_ENABLED})
list(APPEND INCLUDE_DIRECTORIES ${SPIRV_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${SPIRV_LIBRARY_DIRS})
list(APPEND DEPS ${SPIRV_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${SPIRV_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_SPIRV=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_SPIRV=0)
endif()
# lib: fftw3 (optional)
set(LIB_FFTW3_ENABLED true CACHE BOOL "Use fftw3 library?")
pkg_check_modules(FFTW3F fftw3f)
if(FFTW3F_FOUND)
else()
set(LIB_FFTW3_ENABLED false CACHE BOOL "fftw3 library not found" FORCE)
endif()
if(${LIB_FFTW3_ENABLED})
list(APPEND INCLUDE_DIRECTORIES ${FFTW3F_INCLUDE_DIRS})
list(APPEND LINK_DIRECTORIES ${FFTW3F_LIBRARY_DIRS})
list(APPEND DEPS ${FFTW3F_LIBRARIES})
list(APPEND COMPILE_OPTIONS ${FFTW3F_CFLAGS_OTHER})
list(APPEND COMPILE_DEFINITIONS HAS_LIB_FFTW3=1)
else()
list(APPEND COMPILE_DEFINITIONS HAS_LIB_FFTW3=0)
endif()
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
list(APPEND DEPS Threads::Threads)
#=======================================================================================
# target y
#=======================================================================================
add_executable(y
src/audio/audio.cpp
src/audio/AudioBuffer.cpp
src/audio/AudioStream.cpp
src/audio/Listener.cpp
src/audio/Loading.cpp
src/audio/SoundSource.cpp
src/fx/Beam.cpp
src/fx/Particle.cpp
src/fx/ParticleEmitter.cpp
src/fx/ParticleManager.cpp
src/gui/Font.cpp
src/gui/gui.cpp
src/gui/Node.cpp
src/gui/Picture.cpp
src/gui/Text.cpp
src/helper/DeletionQueue.cpp
src/helper/ErrorHandler.cpp
src/helper/PerformanceMonitor.cpp
src/helper/ResourceManager.cpp
src/helper/Scheduler.cpp
src/input/Gamepad.cpp
src/input/InputManager.cpp
src/input/Keyboard.cpp
src/input/Mouse.cpp
src/lib/any/any.cpp
src/lib/base/array.cpp
src/lib/base/pointer.cpp
src/lib/base/strings.cpp
src/lib/doc/chunked.cpp
src/lib/doc/pdf.cpp
src/lib/doc/ttf.cpp
src/lib/doc/xml.cpp
src/lib/fft/fft.cpp
src/lib/hui_minimal/Application.cpp
src/lib/hui_minimal/Callback.cpp
src/lib/hui_minimal/error.cpp
src/lib/hui_minimal/hui.cpp
src/lib/image/color.cpp
src/lib/image/image.cpp
src/lib/image/image_bmp.cpp
src/lib/image/image_jpg.cpp
src/lib/image/image_png.cpp
src/lib/image/image_tga.cpp
src/lib/image/ImagePainter.cpp
src/lib/kaba/asm/asm.cpp
src/lib/kaba/asm/asm_arm.cpp
src/lib/kaba/asm/asm_x86.cpp
src/lib/kaba/compiler/Backend.cpp
src/lib/kaba/compiler/BackendAmd64.cpp
src/lib/kaba/compiler/BackendARM.cpp
src/lib/kaba/compiler/BackendArm64.cpp
src/lib/kaba/compiler/BackendX86.cpp
src/lib/kaba/compiler/CommandList.cpp
src/lib/kaba/compiler/Compiler.cpp
src/lib/kaba/compiler/mapper.cpp
src/lib/kaba/compiler/Serializer.cpp
src/lib/kaba/compiler/SerialNode.cpp
src/lib/kaba/dynamic/call.cpp
src/lib/kaba/dynamic/dynamic.cpp
src/lib/kaba/dynamic/exception.cpp
src/lib/kaba/dynamic/sorting.cpp
src/lib/kaba/lib/dict.cpp
src/lib/kaba/lib/extern.cpp
src/lib/kaba/lib/lib.cpp
src/lib/kaba/lib/lib_async.cpp
src/lib/kaba/lib/lib_base.cpp
src/lib/kaba/lib/lib_doc.cpp
src/lib/kaba/lib/lib_gl.cpp
src/lib/kaba/lib/lib_hui.cpp
src/lib/kaba/lib/lib_image.cpp
src/lib/kaba/lib/lib_kaba.cpp
src/lib/kaba/lib/lib_math.cpp
src/lib/kaba/lib/lib_net.cpp
src/lib/kaba/lib/lib_os.cpp
src/lib/kaba/lib/lib_threads.cpp
src/lib/kaba/lib/lib_time.cpp
src/lib/kaba/lib/lib_vulkan.cpp
src/lib/kaba/lib/list.cpp
src/lib/kaba/parser/abstract.cpp
src/lib/kaba/parser/Concretifier.cpp
src/lib/kaba/parser/import.cpp
src/lib/kaba/parser/lexical.cpp
src/lib/kaba/parser/macros.cpp
src/lib/kaba/parser/Parser.cpp
src/lib/kaba/parser/Transformer.cpp
src/lib/kaba/parser/type_matching.cpp
src/lib/kaba/syntax/Block.cpp
src/lib/kaba/syntax/Class.cpp
src/lib/kaba/syntax/Constant.cpp
src/lib/kaba/syntax/Function.cpp
src/lib/kaba/syntax/Identifier.cpp
src/lib/kaba/syntax/Node.cpp
src/lib/kaba/syntax/Operator.cpp
src/lib/kaba/syntax/preprocessor.cpp
src/lib/kaba/syntax/Statement.cpp
src/lib/kaba/syntax/SyntaxTree.cpp
src/lib/kaba/syntax/Variable.cpp
src/lib/kaba/template/implicit.cpp
src/lib/kaba/template/implicit_array.cpp
src/lib/kaba/template/implicit_callable.cpp
src/lib/kaba/template/implicit_dict.cpp
src/lib/kaba/template/implicit_enum.cpp
src/lib/kaba/template/implicit_future.cpp
src/lib/kaba/template/implicit_list.cpp
src/lib/kaba/template/implicit_optional.cpp
src/lib/kaba/template/implicit_pointer.cpp
src/lib/kaba/template/implicit_product.cpp
src/lib/kaba/template/implicit_regular.cpp
src/lib/kaba/template/template.cpp
src/lib/kaba/CompilerConfiguration.cpp
src/lib/kaba/Context.cpp
src/lib/kaba/Interpreter.cpp
src/lib/kaba/kaba.cpp
src/lib/kaba/Module.cpp
src/lib/math/complex.cpp
src/lib/math/interpolation.cpp
src/lib/math/mat3.cpp
src/lib/math/mat4.cpp
src/lib/math/math.cpp
src/lib/math/plane.cpp
src/lib/math/quaternion.cpp
src/lib/math/random.cpp
src/lib/math/ray.cpp
src/lib/math/rect.cpp
src/lib/math/vec2.cpp
src/lib/math/vec3.cpp
src/lib/math/vec4.cpp
src/lib/net/BinaryBuffer.cpp
src/lib/net/net.cpp
src/lib/net/Socket.cpp
src/lib/nix/nix.cpp
src/lib/nix/nix_buffer.cpp
src/lib/nix/nix_draw.cpp
src/lib/nix/nix_framebuffer.cpp
src/lib/nix/nix_light.cpp
src/lib/nix/nix_shader.cpp
src/lib/nix/nix_textures.cpp
src/lib/nix/nix_vertexbuffer.cpp
src/lib/nix/nix_view.cpp
src/lib/os/CommandLineParser.cpp
src/lib/os/config.cpp
src/lib/os/date.cpp
src/lib/os/file.cpp
src/lib/os/filesystem.cpp
src/lib/os/formatter.cpp
src/lib/os/msg.cpp
src/lib/os/path.cpp
src/lib/os/stream.cpp
src/lib/os/terminal.cpp
src/lib/os/time.cpp
src/lib/threads/Mutex.cpp
src/lib/threads/Thread.cpp
src/lib/threads/ThreadedWork.cpp
src/lib/vulkan/AccelerationStructure.cpp
src/lib/vulkan/Buffer.cpp
src/lib/vulkan/CommandBuffer.cpp
src/lib/vulkan/DescriptorSet.cpp
src/lib/vulkan/Device.cpp
src/lib/vulkan/FrameBuffer.cpp
src/lib/vulkan/helper.cpp
src/lib/vulkan/Instance.cpp
src/lib/vulkan/Pipeline.cpp
src/lib/vulkan/Queue.cpp
src/lib/vulkan/RenderPass.cpp
src/lib/vulkan/Semaphore.cpp
src/lib/vulkan/Shader.cpp
src/lib/vulkan/SwapChain.cpp
src/lib/vulkan/Texture.cpp
src/lib/vulkan/VertexBuffer.cpp
src/lib/vulkan/vulkan.cpp
src/net/NetworkManager.cpp
src/plugins/Controller.cpp
src/plugins/ControllerManager.cpp
src/plugins/PluginManager.cpp
src/renderer/gui/GuiRendererGL.cpp
src/renderer/gui/GuiRendererVulkan.cpp
src/renderer/helper/jitter.cpp
src/renderer/helper/Pipeline.cpp
src/renderer/helper/PipelineManager.cpp
src/renderer/helper/RendererFactory.cpp
src/renderer/post/blur.cpp
src/renderer/post/HDRRendererGL.cpp
src/renderer/post/HDRRendererVulkan.cpp
src/renderer/post/PostProcessor.cpp
src/renderer/post/PostProcessorGL.cpp
src/renderer/post/PostProcessorVulkan.cpp
src/renderer/regions/RegionRendererCommon.cpp
src/renderer/regions/RegionRendererGL.cpp
src/renderer/regions/RegionRendererVulkan.cpp
src/renderer/target/TargetRenderer.cpp
src/renderer/target/TextureRendererGL.cpp
src/renderer/target/WindowRendererGL.cpp
src/renderer/target/WindowRendererVulkan.cpp
src/renderer/world/geometry/GeometryRenderer.cpp
src/renderer/world/geometry/GeometryRendererGL.cpp
src/renderer/world/geometry/GeometryRendererVulkan.cpp
src/renderer/world/geometry/SceneView.cpp
src/renderer/world/pass/ShadowRendererGL.cpp
src/renderer/world/pass/ShadowRendererVulkan.cpp
src/renderer/world/WorldRenderer.cpp
src/renderer/world/WorldRendererGL.cpp
src/renderer/world/WorldRendererGLDeferred.cpp
src/renderer/world/WorldRendererGLForward.cpp
src/renderer/world/WorldRendererVulkan.cpp
src/renderer/world/WorldRendererVulkanForward.cpp
src/renderer/world/WorldRendererVulkanRayTracing.cpp
src/renderer/base.cpp
src/renderer/Renderer.cpp
src/world/components/Animator.cpp
src/world/components/Collider.cpp
src/world/components/MultiInstance.cpp
src/world/components/Skeleton.cpp
src/world/components/SolidBody.cpp
src/world/components/UserMesh.cpp
src/world/Camera.cpp
src/world/LevelData.cpp
src/world/Light.cpp
src/world/Link.cpp
src/world/Material.cpp
src/world/Model.cpp
src/world/ModelManager.cpp
src/world/Object.cpp
src/world/Terrain.cpp
src/world/World.cpp
src/y/BaseClass.cpp
src/y/Component.cpp
src/y/ComponentManager.cpp
src/y/EngineData.cpp
src/y/Entity.cpp
src/Config.cpp
src/main.cpp)
target_include_directories(y PUBLIC ${INCLUDE_DIRECTORIES})
target_link_directories(y PUBLIC ${LINK_DIRECTORIES})
target_compile_options(y PUBLIC ${COMPILE_OPTIONS})
target_compile_definitions(y PUBLIC ${COMPILE_DEFINITIONS} INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
target_link_libraries(y PUBLIC ${DEPS})
target_include_directories(y PUBLIC src/)
#=======================================================================================
# install
#=======================================================================================
set(RESOURCE_DESTINATION share/y)
# binaries
install(TARGETS y DESTINATION bin)
# resources
install(DIRECTORY "static" DESTINATION ${RESOURCE_DESTINATION})