-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
28 lines (21 loc) · 1012 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
project(BaconMusic VERSION 1.0 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(PLUGIN_NAME ${PROJECT_NAME})
set(ADDITIONAL_PLUGIN_DISTRIBUTABLES res patches LICENSE README.md)
include(RackSDK.cmake)
message(STATUS "BaconMusic for Rack Build Process" )
message(STATUS "Installing into '${CMAKE_INSTALL_PREFIX}'")
add_subdirectory(libs/sst/sst-basic-blocks)
add_subdirectory(libs/sst/sst-rackhelpers)
file(GLOB SOURCES src/*.cpp libs/midifile/src/*.cpp libs/open303-code/Source/DSPCode/*.cpp)
add_compile_options(-fvisibility=hidden -fvisibility-inlines-hidden)
target_include_directories(${RACK_PLUGIN_LIB} PRIVATE src libs/midifile/include libs/open303-code/Source/DSPCode)
target_sources(${RACK_PLUGIN_LIB} PRIVATE
${SOURCES})
target_link_libraries(${RACK_PLUGIN_LIB}
PRIVATE
sst-basic-blocks
sst-rackhelpers)