forked from dnschneid/mid2key
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
69 lines (57 loc) · 1.69 KB
/
CMakeLists.txt
File metadata and controls
69 lines (57 loc) · 1.69 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cmake_minimum_required( VERSION 2.8 )
project( midi2input )
# Configuration
# =============
if( NOT CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE Debug CACHE STRING
"The type of build, options are None, Debug, Release, RelWithDebInfo, MinSizeRel" FORCE )
endif()
message( "Build Type: " ${CMAKE_BUILD_TYPE} )
if( NOT DEFINED BUILD_DOCS )
set( BUILD_DOCS true CACHE BOOL
"Whether or not to build the documentation"
FORCE )
endif()
message( "Build Documentation: " ${BUILD_DOCS} )
if( NOT DEFINED CHECK_DOCS )
set( CHECK_DOCS false CACHE BOOL
"Check if generated documentation has differed from respository"
FORCE )
endif()
message( "Check Documentation: " ${CHECK_DOCS} )
# Compiler
# --------
set( CMAKE_CXX_FLAGS -std=c++11 )
# dependencies
# ============
find_package( PkgConfig )
pkg_check_modules( JACK jack )
pkg_check_modules( XTST xtst )
pkg_check_modules( X11 x11 )
pkg_check_modules( LUA lua5.2 )
include_directories(
${JACK_INCLUDE_DIRS}
${XTST_INCLUDE_DIRS}
${X11_INCLUDE_DIRS}
${LUA_INCLUDE_DIRS}
)
set( LIBS ${LIBS}
${JACK_LIBRARIES}
${XTST_LIBRARIES}
${X11_LIBRARIES}
${LUA_LIBRARIES} )
# sub directories
# ===============
add_subdirectory( src )
add_subdirectory( doc )
# CPack
# =====
include( doc/docs.cmake )
set( CPACK_STRIP_FILES true )
set( CPACK_GENERATOR "DEB" )
set( CPACK_DEBIAN_PACKAGE_VERSION "0.1" )
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libx11-6, libxtst6, libjack-jackd2-0, liblua5.2-0" )
set( CPACK_DEBIAN_PACKAGE_MAINTAINER "${DOC_AUTHORS}" )
string( REPLACE "\n" "\n " CPACK_DEBIAN_PACKAGE_DESCRIPTION ${DOC_DESCRIPTION_SHORT} "\n" ${DOC_DESCRIPTION} )
set( CPACK_DEBIAN_PACKAGE_SECTION "utils" )
include( CPack )