-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (17 loc) · 1.16 KB
/
Copy pathCMakeLists.txt
File metadata and controls
26 lines (17 loc) · 1.16 KB
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 2.8)
project(akode)
find_package(ALSA)
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
set(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Base directory for executables and libraries" FORCE)
#
## the following are directories where stuff will be installed to
set(BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" CACHE PATH "The kde info install dir (default prefix/info)" FORCE)
set(LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" FORCE)
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "The subdirectory to the header prefix" FORCE)
include_directories(${CMAKE_BINARY_DIR}/)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/akode-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/akode-config )
add_subdirectory( lib )
add_subdirectory( plugins )
add_subdirectory( akodeplay )
########### install files ###############
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/akode-config DESTINATION ${BIN_INSTALL_DIR})