-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
73 lines (56 loc) · 1.78 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.12)
project(zynlab VERSION "2.4.4")
option(BUILD_VST "enable building all projects using VST" OFF)
option(BUILD_TESTS "enable building all test projects" OFF)
option(BUILD_APP_ZYNADSUBFX "enable building app project" ON)
option(BUILD_APP_THREEDEE "enable building app.threedee project" ON)
option(BUILD_APP_MIXER "enable building app.mixer project" ON)
option(BUILD_APP_TRACKER "enable building app.tracker project" ON)
option(BUILD_APP_SYNTH "enable building app.synth project" ON)
option(BUILD_PINVOKE "enable building pinvoke project" OFF)
include(cmake/CPM.cmake)
include(cmake/Dependencies.cmake)
add_definitions(-DVERSION="${CMAKE_PROJECT_VERSION}")
add_definitions(-DENABLE_FLTKGUI)
find_package(OpenGL) #for FLTK
add_library(_docs INTERFACE README.md)
add_subdirectory("lib.mxml")
add_subdirectory("lib.sqlite3")
add_subdirectory("zyn.common")
add_subdirectory("zyn.dsp")
add_subdirectory("zyn.fx")
add_subdirectory("zyn.mixer")
add_subdirectory("zyn.net")
add_subdirectory("zyn.nio")
add_subdirectory("zyn.seq")
add_subdirectory("zyn.synth")
add_subdirectory("zyn.serialization")
add_subdirectory("zyn.ui")
if(BUILD_APP_ZYNADSUBFX)
add_subdirectory("app")
endif()
if (BUILD_APP_SYNTH)
add_subdirectory("app.synth")
endif(BUILD_APP_SYNTH)
if(BUILD_APP_THREEDEE)
add_subdirectory("lib.imgui")
add_subdirectory("app.threedee")
endif()
if(BUILD_APP_MIXER)
add_subdirectory("app.mixer")
endif()
if(BUILD_APP_TRACKER)
add_subdirectory("app.tracker")
endif()
if(BUILD_TESTS)
add_subdirectory("tests")
endif()
if(BUILD_PINVOKE)
add_subdirectory("zyn.pinvoke")
endif()
if(WIN32 AND BUILD_VST)
add_subdirectory("zyn.vst")
add_subdirectory("zyn.vstadd")
add_subdirectory("zyn.vstsub")
add_subdirectory("zyn.vstpad")
endif()