/[svn]/qsampler/trunk/src/CMakeLists.txt
ViewVC logotype

Contents of /qsampler/trunk/src/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3569 - (show annotations) (download)
Sun Aug 25 21:47:56 2019 UTC (9 months, 1 week ago) by capela
File MIME type: text/plain
File size: 3286 byte(s)
- Retouched the CMake build configuration files (twice again).
1
2 include_directories (
3 ${CMAKE_CURRENT_BINARY_DIR}
4 ${CMAKE_CURRENT_SOURCE_DIR}
5 ${QT_INCLUDES}
6 )
7
8 link_directories (
9 ${CMAKE_CURRENT_BINARY_DIR}
10 ${QT_LIBRARY_DIR}
11 )
12
13 configure_file (cmake_config.h ${CMAKE_CURRENT_BINARY_DIR}/config.h)
14
15 set (ac_prefix ${CMAKE_INSTALL_PREFIX})
16
17 configure_file (qsampler.desktop ${CMAKE_CURRENT_BINARY_DIR}/qsampler.desktop)
18
19 set (HEADERS
20 qsampler.h
21 qsamplerAbout.h
22 qsamplerOptions.h
23 qsamplerChannel.h
24 qsamplerMessages.h
25 qsamplerInstrument.h
26 qsamplerInstrumentList.h
27 qsamplerDevice.h
28 qsamplerFxSend.h
29 qsamplerFxSendsModel.h
30 qsamplerUtilities.h
31 qsamplerInstrumentForm.h
32 qsamplerInstrumentListForm.h
33 qsamplerDeviceForm.h
34 qsamplerDeviceStatusForm.h
35 qsamplerChannelStrip.h
36 qsamplerChannelForm.h
37 qsamplerChannelFxForm.h
38 qsamplerOptionsForm.h
39 qsamplerMainForm.h
40 )
41
42 set (SOURCES
43 qsampler.cpp
44 qsamplerOptions.cpp
45 qsamplerChannel.cpp
46 qsamplerMessages.cpp
47 qsamplerInstrument.cpp
48 qsamplerInstrumentList.cpp
49 qsamplerDevice.cpp
50 qsamplerFxSend.cpp
51 qsamplerFxSendsModel.cpp
52 qsamplerUtilities.cpp
53 qsamplerInstrumentForm.cpp
54 qsamplerInstrumentListForm.cpp
55 qsamplerDeviceForm.cpp
56 qsamplerDeviceStatusForm.cpp
57 qsamplerChannelStrip.cpp
58 qsamplerChannelForm.cpp
59 qsamplerChannelFxForm.cpp
60 qsamplerOptionsForm.cpp
61 qsamplerMainForm.cpp
62 )
63
64 set (FORMS
65 qsamplerInstrumentForm.ui
66 qsamplerInstrumentListForm.ui
67 qsamplerDeviceForm.ui
68 qsamplerChannelStrip.ui
69 qsamplerChannelForm.ui
70 qsamplerChannelFxForm.ui
71 qsamplerOptionsForm.ui
72 qsamplerMainForm.ui
73 )
74
75 set (RESOURCES
76 qsampler.qrc
77 )
78
79 set (TRANSLATIONS
80 translations/qsampler_cs.ts
81 translations/qsampler_fr.ts
82 translations/qsampler_ru.ts
83 )
84
85 qt5_add_translation ( QM_FILES ${TRANSLATIONS} )
86 add_custom_target( translations ALL DEPENDS ${QM_FILES} )
87
88 qt5_wrap_ui (UI_SOURCES ${FORMS})
89 qt5_wrap_cpp (MOC_SOURCES ${HEADERS})
90 qt5_add_resources (QRC_SOURCES ${RESOURCES})
91
92 add_executable (qsampler
93 ${UI_SOURCES}
94 ${MOC_SOURCES}
95 ${QRC_SOURCES}
96 ${SOURCES}
97 )
98
99 target_link_libraries (qsampler
100 ${QT_LIBRARIES}
101 ${LSCP_LIBRARIES}
102 )
103
104 if (CONFIG_LIBGIG)
105 target_link_libraries (qsampler ${GIG_LIBRARIES})
106 endif ()
107
108 qt5_use_modules (qsampler Core Gui Widgets)
109
110 if (CONFIG_XUNIQUE)
111 qt5_use_modules (qsampler Network)
112 endif ()
113
114 if (UNIX AND NOT APPLE)
115 install (TARGETS qsampler RUNTIME
116 DESTINATION ${CMAKE_INSTALL_BINDIR})
117 install (FILES ${QM_FILES}
118 DESTINATION ${CMAKE_INSTALL_DATADIR}/qsampler/translations)
119 install (FILES ${CMAKE_CURRENT_BINARY_DIR}/qsampler.desktop
120 DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
121 install (FILES images/qsampler.png
122 DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/apps)
123 install (FILES images/qsampler.svg
124 DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
125 install (FILES appdata/qsampler.appdata.xml
126 DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
127 install (FILES mimetypes/qsampler.xml
128 DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
129 install (FILES mimetypes/application-x-qsampler-session.png
130 DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/mimetypes)
131 install (FILES mimetypes/application-x-qsampler-session.svg
132 DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/mimetypes)
133 endif ()

  ViewVC Help
Powered by ViewVC