forked from jmarshallnz/audioencoder.lame
-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
26 lines (19 loc) · 710 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
cmake_minimum_required(VERSION 3.5)
project(audioencoder.lame)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(Iconv REQUIRED)
find_package(Lame REQUIRED)
if(WIN32)
find_package(MPGHIP REQUIRED)
endif()
include_directories(${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways (becomes done in future)
${iconv_INCLUDE_DIRS}
${LAME_INCLUDE_DIRS})
set(LAME_SOURCES src/EncoderLame.cpp)
set(DEPLIBS ${LAME_LIBRARIES} ${ICONV_LIBRARY})
if(WIN32)
list(APPEND DEPLIBS ${MPGHIP_LIBRARIES})
endif()
build_addon(audioencoder.lame LAME DEPLIBS)
include(CPack)