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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC