aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 1af633665a9a12e9bdb420c35ead3408fc161a11 (plain)
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
cmake_minimum_required(VERSION 2.8)

project(synthpod)

# pkg-config
find_package(PkgConfig REQUIRED)
include(CheckIncludeFiles)
include(CheckFunctionExists)
include(CheckSymbolExists)

include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR})

set(SYNTHPOD_DATA_DIR "share/synthpod")
add_definitions("-DSYNTHPOD_DATA_DIR=\"${CMAKE_INSTALL_PREFIX}/${SYNTHPOD_DATA_DIR}\"")

set(SYNTHPOD_VERSION "0.1.0_alpha")
add_definitions("-DSYNTHPOD_VERSION=\"${SYNTHPOD_VERSION}\"")

set(CMAKE_C_FLAGS "-std=gnu11 ${CMAKE_C_FLAGS}")

# options
option(BUILD_UI "Build user interface libraries" OFF)
option(BUILD_JACK "Build JACK standalone host" OFF)
option(BUILD_PORTAUDIO "Build PortAudio standalone host (experimental)" OFF)

# eina
pkg_search_module(EINA REQUIRED eina>=1.8)
include_directories(${EINA_INCLUDE_DIRS})

# efreet
pkg_search_module(EFREET REQUIRED efreet>=1.8)
include_directories(${EFREET_INCLUDE_DIRS})

# ecore
pkg_search_module(ECORE REQUIRED ecore>=1.8)
include_directories(${ECORE_INCLUDE_DIRS})

# ecore-con
pkg_search_module(ECORE_CON REQUIRED ecore-con>=1.8)
include_directories(${ECORE_CON_INCLUDE_DIRS})

# ecore-file
pkg_search_module(ECORE_FILE REQUIRED ecore-file>=1.8)
include_directories(${ECORE_FILE_INCLUDE_DIRS})
	
# lilv
pkg_search_module(LILV REQUIRED lilv-0>=0.20)
include_directories(${LILV_INCLUDE_DIRS})

# lv2
pkg_search_module(LV2 REQUIRED lv2>=1.10)
include_directories(${LV2_INCLUDE_DIRS})

if(BUILD_UI)
	add_definitions("-DBUILD_UI")

# elm
	pkg_search_module(ELM REQUIRED elementary>=1.8)
	include_directories(${ELM_INCLUDE_DIRS})

	pkg_search_module(ECORE_X OPTIONAL ecore-x)
endif()

add_subdirectory(lib)
add_subdirectory(bin)
add_subdirectory(plugins)
add_subdirectory(data)
add_subdirectory(bundle)