File: CMakeLists.txt

package info (click to toggle)
yatm 0.8-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 92 kB
  • ctags: 41
  • sloc: cpp: 761; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 1,251 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
27
28
cmake_minimum_required(VERSION 2.8)
project(YATM CXX)
set(YATM_MAJOR_VERSION 0)
set(YATM_MINOR_VERSION 8)
set(YATM_VERSION ${YATM_MAJOR_VERSION}.${YATM_MINOR_VERSION})
find_package(PkgConfig REQUIRED)
pkg_search_module(AO REQUIRED ao)
pkg_search_module(MAD REQUIRED mad)
pkg_search_module(OGG REQUIRED ogg)
pkg_search_module(SLANG REQUIRED slang)
pkg_search_module(SNDFILE REQUIRED sndfile>=1.0.18)
pkg_search_module(SOUNDTOUCH REQUIRED soundtouch)
pkg_search_module(SPEEX REQUIRED speex)
include_directories(${AO_INCLUDE_DIRS})
include_directories(${MAD_INCLUDE_DIRS})
include_directories(${OGG_INCLUDE_DIRS})
include_directories(${SLANG_INCLUDE_DIRS})
include_directories(${SNDFILE_INCLUDE_DIRS})
include_directories(${SOUNDTOUCH_INCLUDE_DIRS})
include_directories(${SPEEX_INCLUDE_DIRS})
configure_file("${PROJECT_SOURCE_DIR}/config.h.in" "${PROJECT_BINARY_DIR}/config.h")
include_directories("${PROJECT_BINARY_DIR}")
add_executable(yatm yatm.cc)
target_link_libraries(yatm ${AO_LIBRARIES} ${MAD_LIBRARIES} ${OGG_LIBRARIES}
                           ${SLANG_LIBRARIES} ${SNDFILE_LIBRARIES}
                           ${SOUNDTOUCH_LIBRARIES} ${SPEEX_LIBRARIES})
install(TARGETS yatm DESTINATION bin)
install(FILES yatm.1 DESTINATION share/man/man1)