-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (28 loc) · 1.13 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
# DISTRHO Plugin Framework (DPF)
# Copyright (C) 2022 Filipe Coelho <[email protected]>
# SPDX-License-Identifier: ISC
cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 17)
set(NAME elements-demo-plugin)
project(${NAME})
add_subdirectory(dpf)
dpf_add_plugin("${NAME}"
TARGETS clap lv2 vst2 vst3 jack
UI_TYPE cairo
NO_SHARED_RESOURCES
FILES_DSP
src/PluginDSP.cpp
FILES_UI
src/PluginUI.cpp
dpf-widgets/cairo/Elements.cpp)
target_include_directories("${NAME}" PUBLIC src)
target_include_directories("${NAME}" PUBLIC dpf-widgets/cairo)
target_include_directories("${NAME}" PUBLIC dpf-widgets/generic)
# the elements library requires fontconfig, freetype and threads
find_package(PkgConfig)
find_package(Threads)
pkg_check_modules(FONTCONFIG "fontconfig" REQUIRED)
pkg_check_modules(FREETYPE2 "freetype2" REQUIRED)
target_include_directories("${NAME}" PUBLIC ${FONTCONFIG_INCLUDE_DIRS} ${FREETYPE2_INCLUDE_DIRS})
target_link_directories("${NAME}" PUBLIC ${FONTCONFIG_LIBRARY_DIRS} ${FREETYPE2_LIBRARY_DIRS})
target_link_libraries("${NAME}" PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${FONTCONFIG_LIBRARIES} ${FREETYPE2_LIBRARIES})