-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
38 lines (32 loc) · 1.58 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
#*********************************************************************
# Copyright (C) Anton Kovalev, 2018-2022. All rights reserved.
# Dynation plugin
# MIT License
#****************************************************************/
cmake_minimum_required(VERSION 3.16)
project(Dynation C CXX)
file(GLOB DYNATION_BASE_SOURCE_CODE
"${CMAKE_CURRENT_SOURCE_DIR}/deps/VST2_SDK/public.sdk/source/vst2.x/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/deps/VST2_SDK/public.sdk/source/vst2.x/*.h"
"${CMAKE_CURRENT_SOURCE_DIR}/deps/imgui-master/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/deps/imgui-master/*.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.h"
)
file(GLOB DYNATION_PLUGIN_SOURCE_CODE
"${CMAKE_CURRENT_SOURCE_DIR}/src/dynation/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/src/dynation/*.h"
)
add_library(dyn_base STATIC ${DYNATION_BASE_SOURCE_CODE})
target_include_directories(dyn_base PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/deps")
target_include_directories(dyn_base PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
target_include_directories(dyn_base PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/deps/VST2_SDK/pluginterfaces/vst2.x")
target_include_directories(dyn_base PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/deps/VST2_SDK/public.sdk/source/vst2.x")
target_include_directories(dyn_base PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/deps/imgui-master")
add_library(dynation MODULE ${DYNATION_PLUGIN_SOURCE_CODE})
target_link_libraries(dynation PUBLIC dyn_base)
set_target_properties(dynation
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin/"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin/"
)