-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (33 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
39
40
41
cmake_minimum_required(VERSION 3.15)
project(cantina_plugin)
# see: https://cmake.org/cmake/help/v2.9/manual/cmake-variables.7.html
message("CMAKE_VERSION : " ${CMAKE_VERSION})
message("CMAKE_SYSTEM_NAME : " ${CMAKE_SYSTEM_NAME})
message("CMAKE_SYSTEM : " ${CMAKE_SYSTEM})
message("CMAKE_SYSTEM_PROCESSOR : " ${CMAKE_SYSTEM_PROCESSOR})
# spell out the directories
message("CMAKE_BINARY_DIR : " ${CMAKE_BINARY_DIR})
message("CMAKE_SOURCE_DIR : " ${CMAKE_SOURCE_DIR})
message("CMAKE_HOME_DIRECTORY : " ${CMAKE_HOME_DIRECTORY})
message("PROJECT_BINARY_DIR : " ${PROJECT_BINARY_DIR})
message("PROJECT_SOURCE_DIR : " ${PROJECT_SOURCE_DIR})
set(CANTINA_PLUGIN_BINDINGS_DIR ${PROJECT_SOURCE_DIR}/bindings)
set(CANTINA_PLUGIN_PD_DIR ${CANTINA_PLUGIN_BINDINGS_DIR}/pd)
set(CANTINA_PLUGIN_LV2_DIR ${CANTINA_PLUGIN_BINDINGS_DIR}/lv2)
set(CANTINA_PLUGIN_JUCE_DIR ${CANTINA_PLUGIN_BINDINGS_DIR}/juce)
#
set(CANTINA_PLUGIN_OUTPUT_DIR ${PROJECT_BINARY_DIR}/cantina_plugin)
set(CANTINA_URI "http://lv2plug.in/cantina")
set(CANTINA_HOME "https://github.com/cantina-lib/cantina")
# Add dependencies first so that they are valid in the plug-ins.
# cantina
set(CANTINA_DIR ${PROJECT_SOURCE_DIR}/cantina)
add_subdirectory(${CANTINA_DIR})
add_subdirectory(${CANTINA_PLUGIN_PD_DIR})
add_subdirectory(${CANTINA_PLUGIN_LV2_DIR})
# absolutely not.
# add_subdirectory(${CANTINA_PLUGIN_JUCE_DIR})
# For Vim YouCompleteMe
# Does not work?
# see: https://dane-bulat.medium.com/vim-setting-up-a-build-system-and-code-completion-for-c-and-c-eb263c0a19a1
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)