-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
51 lines (38 loc) · 1.3 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
cmake_minimum_required (VERSION 3.0)
project (Deiconze)
# Print pretty summary
include(Summary.cmake)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake-modules/")
find_package (Boost 1.54 REQUIRED)
find_package (PkgConfig 0.16 REQUIRED)
pkg_check_modules(DSSI dssi>=1.0)
find_package(LVTK)
# uncomment to be in Release mode [default]
# set(CMAKE_BUILD_TYPE Release)
# uncomment to build in debug mode
# set(CMAKE_BUILD_TYPE Debug)
# default build type
IF (CMAKE_BUILD_TYPE STREQUAL "")
SET(CMAKE_BUILD_TYPE Release)
ENDIF (CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_CXX_FLAGS "-std=gnu++0x -fPIC")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -g0")
if(Boost_FOUND)
set(HAVE_DEICSONZE 1)
endif(Boost_FOUND)
if(HAVE_DEICSONZE AND DSSI_FOUND)
set(HAVE_DSSI 1)
endif(HAVE_DEICSONZE AND DSSI_FOUND)
if(HAVE_DEICSONZE AND LVTK_FOUND)
set(HAVE_LVTK 1)
endif(HAVE_DEICSONZE AND LVTK_FOUND)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/VST3 SDK/public.sdk/source/vst2.x/audioeffectx.h")
set(HAVE_VST 1)
endif()
add_subdirectory(src)
summary_add("Deicsonze" "Library of Deicsonze" HAVE_DEICSONZE)
summary_add("Deicsonze-DSSI" "DSSI plugin of Deiczone" HAVE_DSSI)
summary_add("Deicsonze-LVTK" "LVTK plugin of Deiczone" HAVE_LVTK)
summary_add("Deicsonze-VST" "VST plugin of Deiczone" HAVE_VST)
summary_show()