forked from versustunez/VEQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
57 lines (45 loc) · 1.63 KB
/
CMakeLists.txt
File metadata and controls
57 lines (45 loc) · 1.63 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
## Setup base
cmake_minimum_required(VERSION 3.22)
# Plugin Names
set(PluginName VEQ)
set(PluginVendor VstZ)
# Plugin Codes
set(PluginVendorCode VstZ) # Exactly 4 Chars!
set(PluginCode VEEQ) # Exactly 4 Chars!
set(PluginID "dev.vstz.veq")
# If you need more comfort change it directly in Plugin/CMakeLists.txt
project(${PluginName})
# SET VARIABLES
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
set_property(GLOBAL PROPERTY USE_FOLDERS YES)
if (CMAKE_CXX_COMPILER_ID MATCHES "^GNU$")
message(STATUS "Add GNU Options for Compiling")
add_compile_options(-Wno-free-nonheap-object -Wextra-semi)
endif ()
add_library(sse4_1 INTERFACE IMPORTED)
if (MSVC)
target_compile_options(sse4_1 INTERFACE /arch:SSE4.1)
else ()
target_compile_options(sse4_1 INTERFACE -msse4.1)
endif ()
option(UniversalBinary "Build universal binary for mac" ON)
if (UniversalBinary)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE INTERNAL "")
endif ()
set_property(GLOBAL PROPERTY USE_FOLDERS YES)
option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Enable Module Source Groups" ON)
# SETUP JUCE
include(CMake/GitFunctions.cmake)
update_from_git(juce "https://github.com/38github/JUCE" "master")
## SETUP OPTIONS
option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Enable Module Source Groups" ON)
option(JUCE_BUILD_EXTRAS "Build JUCE Extras" OFF)
option(JUCE_BUILD_EXAMPLES "Build JUCE Examples" OFF)
include (Version)
add_subdirectory(CMake)
add_subdirectory(${juce_SOURCE_DIR})
add_subdirectory(Plugin)