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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC