-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
53 lines (39 loc) · 1.68 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
include(cmake/addon-template-helpers.cmake)
project(adsp.freesurround)
cmake_minimum_required(VERSION 2.6)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
enable_language(CXX)
find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
include_directories(${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS})
set(FREESURROUND_SOURCES src/addon.cpp
src/GUIDialogFreeSurround.cpp
src/kissfft/kiss_fft.c
src/kissfft/kiss_fftr.c
src/DSPProcessFreeSurround.cpp
src/FreeSurroundSettings.cpp
src/ChannelMaps.cpp
src/FreeSurroundDecoder.cpp
#)
#set(FREESURROUND_HEADERS
src/addon.h
src/ChannelMaps.h
src/DSPProcessFreeSurround.h
src/FreeSurroundDecoder.h
src/FreeSurroundSettings.h
src/GUIDialogFreeSurround.h
src/kissfft/_kiss_fft_guts.h
src/kissfft/kiss_fft.h
src/kissfft/kiss_fftnd.h
src/kissfft/kiss_fftndr.h
src/kissfft/kiss_fftr.h
)
set(DEPLIBS ${kodiplatform_LIBRARIES}
${p8-platform_LIBRARIES})
addon_source_group("${FREESURROUND_SOURCES}")
addon_source_group("${FREESURROUND_HEADERS}")
build_addon(adsp.freesurround FREESURROUND DEPLIBS)
add_definitions(-DFREESURROUND_VERSION="${FREESURROUND_VERSION}")
include(CPack)