forked from kunitoki/yup
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
70 lines (59 loc) · 2.21 KB
/
CMakeLists.txt
File metadata and controls
70 lines (59 loc) · 2.21 KB
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
# ==============================================================================
#
# This file is part of the YUP library.
# Copyright (c) 2024 - kunitoki@gmail.com
#
# YUP is an open source library subject to open-source licensing.
#
# The code included in this file is provided under the terms of the ISC license
# http://www.isc.org/downloads/software-support-policy/isc-license. Permission
# To use, copy, modify, and/or distribute this software for any purpose with or
# without fee is hereby granted provided that the above copyright notice and
# this permission notice appear in all copies.
#
# YUP IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
# EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
# DISCLAIMED.
#
# ==============================================================================
cmake_minimum_required(VERSION 3.28)
include(cmake/yup.cmake)
_yup_setup_platform()
if ("${yup_platform}" MATCHES "^(osx)$")
set (CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
endif()
project (yup VERSION 1.0)
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
option (YUP_BUILD_EXAMPLES "Build the examples" ON)
option (YUP_BUILD_TESTS "Build the tests" ON)
# Dependencies modules
yup_add_module (thirdparty/glad)
yup_add_module (thirdparty/harfbuzz)
yup_add_module (thirdparty/sheenbidi)
yup_add_module (thirdparty/rive)
yup_add_module (thirdparty/rive_pls_renderer)
# Original juce modules
yup_add_module (modules/juce_core)
yup_add_module (modules/juce_events)
yup_add_module (modules/juce_audio_basics)
yup_add_module (modules/juce_audio_devices)
# New yup modules
yup_add_module (modules/yup_audio_processors)
yup_add_module (modules/yup_audio_plugin_client)
yup_add_module (modules/yup_graphics)
yup_add_module (modules/yup_gui)
# Targets
if (YUP_BUILD_EXAMPLES)
message (STATUS "YUP -- Building examples")
add_subdirectory (examples/app)
add_subdirectory (examples/console)
add_subdirectory (examples/graphics)
add_subdirectory (examples/render)
if (NOT "${yup_platform}" STREQUAL "emscripten")
add_subdirectory (examples/plugin)
endif()
endif()
if (YUP_BUILD_TESTS)
message (STATUS "YUP -- Building tests")
add_subdirectory (tests)
endif()