-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (23 loc) · 890 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
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.10)
cmake_policy(SET CMP0076 NEW)
project(ChordPlay VERSION 0.2.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
include(GNUInstallDirs)
find_package(PkgConfig)
pkg_check_modules(POPT popt)
pkg_check_modules(RTMIDI rtmidi)
configure_file(
${PROJECT_SOURCE_DIR}/src/config.h.in
${PROJECT_BINARY_DIR}/config.h
)
add_executable(chordplay)
add_subdirectory(src)
target_include_directories(chordplay PUBLIC ${POPT_INCLUDE_DIRS} ${RTMIDI_INCLUDE_DIRS} ${PROJECT_BINARY_DIR})
target_link_libraries(chordplay ${POPT_LIBRARIES} ${RTMIDI_LIBRARIES})
install(TARGETS chordplay DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY ensembles DESTINATION ${CMAKE_INSTALL_DATADIR}/chordplay)
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "stb")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libpopt0, librtmidi4")
include(CPack)