-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (25 loc) · 1.01 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
# DISTRHO Plugin Framework (DPF)
# Copyright (C) 2022 falkTX <[email protected]>
# SPDX-License-Identifier: ISC
cmake_minimum_required(VERSION 3.7)
set(NAME imgui-demo-app)
project(${NAME})
add_subdirectory(dpf)
# target either cairo or opengl
#dpf__add_dgl_cairo()
dpf__add_dgl_opengl()
# define target executable
add_executable("${NAME}")
target_sources("${NAME}" PRIVATE "main.cpp")
target_sources("${NAME}" PRIVATE "${PROJECT_SOURCE_DIR}/dpf-widgets/opengl/DearImGui.cpp")
target_include_directories("${NAME}" PUBLIC "${DPF_ROOT_DIR}/distrho")
target_include_directories("${NAME}" PUBLIC "${DPF_ROOT_DIR}/dgl")
target_include_directories("${NAME}" PUBLIC "${PROJECT_SOURCE_DIR}/dpf-widgets/opengl")
target_link_libraries("${NAME}" PRIVATE dgl-opengl)
target_link_libraries("${NAME}" PUBLIC dgl-opengl-definitions dgl-system-libs-definitions)
if((NOT WIN32) AND (NOT APPLE) AND (NOT HAIKU))
target_link_libraries("${NAME}" PRIVATE "dl")
endif()
if(MINGW)
target_link_libraries("${NAME}" PRIVATE "-static")
endif()