-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
67 lines (61 loc) · 1.87 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
cmake_minimum_required(VERSION 3.21)
project(UnplugRedsVSTTrove)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
if(APPLE)
set (CMAKE_OSX_DEPLOYMENT_TARGET "11.0" CACHE STRING "Minimum OS X deployment version" FORCE)
set (CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE INTERNAL "")
endif()
include(FetchContent)
Set(FETCHCONTENT_QUIET FALSE)
FetchContent_Declare(
JUCE
GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
GIT_TAG 7.0.12
GIT_PROGRESS TRUE
)
FetchContent_Declare(
clap-juce-extensions
GIT_REPOSITORY https://github.com/free-audio/clap-juce-extensions.git
GIT_TAG main
)
FetchContent_MakeAvailable(JUCE clap-juce-extensions)
set_property(GLOBAL PROPERTY USE_FOLDERS YES)
option(JUCE_BUILD_EXTRAS "Build extras" OFF)
option(JUCE_BUILD_EXAMPLES "Build examples" OFF)
option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Enable module source groups" ON)
option(JUCE_COPY_PLUGIN_AFTER_BUILD "Copy plugin after build" ON)
if (BANNERTYPE GREATER 0)
add_compile_definitions(BANNER)
if (BANNERTYPE GREATER 1)
add_compile_definitions(BETA)
endif()
if(APPLE)
set(outdir "../../../setup/build_mac/free")
set(freedir "../../../setup/build_mac/free")
else()
if(UNIX)
set(outdir "../../../setup/build_linux/free")
set(freedir "../../../setup/build_linux/free")
else()
set(outdir "../../../setup/build_win/free")
set(freedir "../../../setup/build_win/free")
endif()
endif()
else()
if(APPLE)
set(outdir "../../../setup/build_mac/paid")
set(freedir "../../../setup/build_mac/free")
else()
if(UNIX)
set(outdir "../../../setup/build_linux/paid")
set(freedir "../../../setup/build_linux/free")
else()
set(outdir "../../../setup/build_win/paid")
set(freedir "../../../setup/build_win/free")
endif()
endif()
endif()
add_subdirectory(modules)
add_subdirectory(plugins)