-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
34 lines (28 loc) · 1015 Bytes
/
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
cmake_minimum_required(VERSION 3.9)
project( EASSynth
VERSION 1.6.0
DESCRIPTION "Sonivox EAS for Linux and Qt" )
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
option(USE_QT5 "Choose Qt5 instead of Qt6. By default uses Qt6")
include(GNUInstallDirs)
if (USE_QT5)
find_package(QT NAMES Qt5)
else()
find_package(QT NAMES Qt6)
endif()
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Widgets REQUIRED)
find_package(Drumstick 2.10 COMPONENTS ALSA REQUIRED)
message(STATUS "Using Drumstick version: ${Drumstick_VERSION}")
find_package(PkgConfig REQUIRED)
pkg_check_modules(PULSE REQUIRED IMPORTED_TARGET libpulse-simple)
find_package(sonivox 3.6.15 CONFIG)
if (NOT sonivox_FOUND)
message(FATAL_ERROR "Sonivox library not found")
#alternative: use sonivox as a git submodule:
#add_subdirectory(sonivox)
endif()
message(STATUS "Using Sonivox version: ${sonivox_VERSION}")
add_subdirectory(libsvoxeas)
add_subdirectory(cmdlnsynth)
add_subdirectory(guisynth)