-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
50 lines (39 loc) · 1.34 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set( SOURCES main.cpp mainwindow.cpp )
set( HEADERS mainwindow.h )
set( FORMS mainwindow.ui )
set( RESOURCES guisynth.qrc )
add_executable( guisynth
${SOURCES}
${HEADERS}
${FORMS}
${RESOURCES}
)
get_target_property( SONIVOX_HEADERS sonivox::sonivox INTERFACE_INCLUDE_DIRECTORIES )
target_include_directories( guisynth PRIVATE ${SONIVOX_HEADERS} )
target_link_libraries( guisynth
Qt5::Widgets
Drumstick::ALSA
svoxeas
)
target_compile_definitions( guisynth PRIVATE
VERSION=${PROJECT_VERSION}
$<$<CONFIG:RELEASE>:QT_NO_DEBUG_OUTPUT>
)
install( TARGETS guisynth
DESTINATION ${CMAKE_INSTALL_BINDIR} )
install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/icon.png
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps
RENAME sonivoxeas.png )
install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/icon256.png
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/256x256/apps
RENAME sonivoxeas.png )
install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/icon512.png
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/512x512/apps
RENAME sonivoxeas.png )
install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/guisynth.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications
RENAME sonivoxeas.desktop )