File: CMakeLists.txt

package info (click to toggle)
kodi-audioencoder-lame 21.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: cpp: 200; xml: 44; makefile: 9
file content (26 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (2)
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)