Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 119 | if(X11_FOUND) | |||
---|---|---|---|---|---|
121 | set(HAVE_X11 1) | 121 | set(HAVE_X11 1) | ||
122 | endif() | 122 | endif() | ||
123 | 123 | | |||
124 | configure_file(config-gwenview.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gwenview.h) | 124 | configure_file(config-gwenview.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gwenview.h) | ||
125 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 125 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
126 | 126 | | |||
127 | add_definitions(-DQT_NO_URL_CAST_FROM_STRING) | 127 | add_definitions(-DQT_NO_URL_CAST_FROM_STRING) | ||
128 | 128 | | |||
129 | function(JoinListAsString VALUES GLUE OUTPUT) | ||||
130 | string(REPLACE ";" "${GLUE}" _TMP_STR "${VALUES}") | ||||
131 | set(${OUTPUT} "${_TMP_STR}" PARENT_SCOPE) | ||||
132 | endfunction() | ||||
133 | | ||||
134 | set(IMAGE_MIME_TYPES_LIST | ||||
135 | image/gif | ||||
136 | image/jpeg | ||||
137 | image/png | ||||
138 | image/bmp | ||||
139 | image/x-eps | ||||
140 | image/x-icns | ||||
141 | image/x-ico | ||||
142 | image/x-portable-bitmap | ||||
143 | image/x-portable-graymap | ||||
144 | image/x-portable-pixmap | ||||
145 | image/x-xbitmap | ||||
146 | image/x-xpixmap | ||||
147 | image/tiff | ||||
148 | image/x-psd | ||||
149 | image/x-webp | ||||
150 | image/webp | ||||
151 | image/x-tga | ||||
152 | ) | ||||
153 | if (KF5KDcraw_FOUND) | ||||
154 | list(APPEND IMAGE_MIME_TYPES_LIST | ||||
155 | image/x-kde-raw | ||||
156 | image/x-canon-cr2 | ||||
157 | image/x-canon-crw | ||||
158 | image/x-kodak-dcr | ||||
159 | image/x-adobe-dng | ||||
160 | image/x-kodak-k25 | ||||
161 | image/x-kodak-kdc | ||||
162 | image/x-minolta-mrw | ||||
163 | image/x-nikon-nef | ||||
164 | image/x-olympus-orf | ||||
165 | image/x-pentax-pef | ||||
166 | image/x-fuji-raf | ||||
167 | image/x-panasonic-rw | ||||
168 | image/x-sony-sr2 | ||||
169 | image/x-sony-srf | ||||
170 | image/x-sigma-x3f | ||||
171 | image/x-sony-arw | ||||
172 | image/x-panasonic-rw2 | ||||
173 | ) | ||||
174 | endif() | ||||
175 | JoinListAsString("${IMAGE_MIME_TYPES_LIST}" ";" IMAGE_MIME_TYPES) | ||||
176 | | ||||
129 | ## dirs to build | 177 | ## dirs to build | ||
130 | add_subdirectory(lib) | 178 | add_subdirectory(lib) | ||
131 | add_subdirectory(app) | 179 | add_subdirectory(app) | ||
132 | add_subdirectory(importer) | 180 | add_subdirectory(importer) | ||
133 | add_subdirectory(part) | 181 | add_subdirectory(part) | ||
134 | add_subdirectory(tests) | 182 | add_subdirectory(tests) | ||
135 | add_subdirectory(icons) | 183 | add_subdirectory(icons) | ||
136 | add_subdirectory(images) | 184 | add_subdirectory(images) | ||
137 | add_subdirectory(cursors) | 185 | add_subdirectory(cursors) | ||
138 | add_subdirectory(color-schemes) | 186 | add_subdirectory(color-schemes) | ||
139 | add_subdirectory(doc) | 187 | add_subdirectory(doc) | ||
140 | add_subdirectory(kconf_update) | 188 | add_subdirectory(kconf_update) | ||
141 | 189 | | |||
142 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) | 190 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) |