-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (21 loc) · 983 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
cmake_minimum_required(VERSION 2.6)
project(qtmidi)
find_package(Qt4 REQUIRED)
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
set(qtMidi_SRCS qtMidi.cpp main.cpp)
qt4_automoc(${qtMidi_SRCS})
add_executable(qtmidi ${qtMidi_SRCS})
target_link_libraries(qtmidi ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
install(TARGETS qtmidi RUNTIME DESTINATION bin)
install( PROGRAMS qtmidi.desktop DESTINATION /usr/share/applications )
install( PROGRAMS qtmidi.png DESTINATION /usr/share/pixmaps )
include (InstallRequiredSystemLibraries)
set (CPACK_RESOURCE_FILE_LICENSE
"${CMAKE_CURRENT_SOURCE_DIR}/License.txt")
set (CPACK_PACKAGE_VERSION_MAJOR "0")
set (CPACK_PACKAGE_VERSION_MINOR "1")
set (CPACK_PACKAGE_CONTACT "Florian Schunk <[email protected]")
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Graphical interface to manage midi devices")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "timidity, alsa-utils")
set (CPACK_PACKAGE_EXECUTABLES "qtmidi;qtMidi")
include (CPack)