-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
410 lines (334 loc) · 15 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
#-*-cmake-*-
# ============================================================================
# Copyright Jean-Charles LAMBERT - 2007-2023
# e-mail: [email protected]
# address: Centre de donneeS Astrophysique de Marseille (CeSAM)
# Laboratoire d'Astrophysique de Marseille
# Pôle de l'Etoile, site de Château-Gombert
# 38, rue Frédéric Joliot-Curie
# 13388 Marseille cedex 13 France
# CNRS U.M.R 7326
# ============================================================================
# See the complete license in LICENSE and/or "http://www.cecill.info".
# ============================================================================
cmake_minimum_required(VERSION 2.8)
# project name
project (glnemo2)
# extra path for .cmake .files
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
# load setup flags
include(SetupFlags)
# contains the full path to the top level directory of your build tree
MESSAGE( STATUS "PROJECT_BINARY_DIR: " ${PROJECT_BINARY_DIR} )
# contains the full path to the root of your project source directory,
# i.e. to the nearest directory where CMakeLists.txt contains the PROJECT() command
MESSAGE( STATUS "PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR} )
MESSAGE( STATUS "CMAKE_BUILD_TYPE =" ${CMAKE_BUILD_TYPE} )
MESSAGE( STATUS "CMAKE_CXX_FLAGS =" ${CMAKE_CXX_FLAGS} )
# use ccache if any
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
# Cpack Generator detection
include(DetectCpackGenerator)
if (WIN32)
MESSAGE(STATUS "\n\n\n- - - WINDOWS - - -\n\n\nWARNING : DO NOT FORGET TO RUN CMAKE LIKE THIS\n\n ")
MESSAGE(STATUS "cmake -G \"MinGW Makefiles\" .. -DCMAKE_PREFIX_PATH=c:\\QtSDK-x86_64\n\n\n")
endif ()
if (APPLE)
MESSAGE(STATUS "\n\n\n- - - Mac OSX - - -\n\n\nWARNING : DO NOT FORGET TO RUN CMAKE LIKE THIS\n\n ")
MESSAGE(STATUS "/opt/local/bin/cmake .. -DCMAKE_PREFIX_PATH=/Users/grunner/Qt/5.15.2/clang_64/lib/cmake\n\n\n")
endif ()
# check QTDIR5
FILE(GLOB GLOB_TEMP_VAR1 $ENV{QTDIR5})
IF(NOT GLOB_TEMP_VAR1)
MESSAGE(STATUS "\n\nWARNING, environment variable >>> QTDIR5 <<< is not defined")
MESSAGE(STATUS "If it does not compile, try to set it to your QT5 location directory\n\n")
SET(QTDIR5 "/usr")
ELSE (NOT GLOB_TEMP_VAR1)
SET(QTDIR5 $ENV{QTDIR5})
MESSAGE(STATUS "QTDIR5 location = $ENV{QTDIR5}")
ENDIF()
# check for nemo
SET(NEMO_INSTALLED FALSE)
FILE(GLOB GLOB_TEMP_VAR $ENV{NEMO})
IF(GLOB_TEMP_VAR)
SET(NEMO_INSTALLED TRUE)
ENDIF()
# MODULEs PATH
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake ${QTDIR5})
# Instruct CMake to run moc automatically when needed.
#set(CMAKE_AUTOMOC ON)
# find QT5 files
find_package(Qt5Widgets)
find_package(Qt5Core)
find_package(Qt5OpenGL)
find_package(Qt5Network)
find_package(Qt5PrintSupport)
find_package(Qt5Gui)
# HDF5 support
FIND_PACKAGE(HDF5 COMPONENTS CXX REQUIRED)
# find OpenGL package
find_package(OpenGL REQUIRED)
# contains the full path to the top level directory of your build tree
MESSAGE( STATUS "PROJECT_BINARY_DIR: " ${PROJECT_BINARY_DIR} )
# contains the full path to the root of your project source directory,
# i.e. to the nearest directory where CMakeLists.txt contains the PROJECT() command
MESSAGE( STATUS "PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR} )
# Library's files
FILE(GLOB lib_files
"plugins/nemolight/*.c"
"plugins/*.cc"
"plugins/ftm/*.cc"
"plugins/gadget/*.cc"
"plugins/gadgeth5/*.cc"
"plugins/tipsy/*.cc"
"plugins/network/*.cc"
"plugins/network/*.cpp"
"plugins/ramses/*.cc"
"utils/*.cc"
"3rdparty/pfntlib/*.cxx"
)
# Find plugins qt headers
FILE(GLOB hdrs1_files plugins/*.h plugins/ftm/*.h plugins/gadget/*.h plugins/gadgeth5/*.h
plugins/network/*.h plugins/ramses/*.h plugins/tipsy/*.h
)
# Tipsy is not suported by WIN32
if (WIN32)
list (REMOVE_ITEM lib_files ${CMAKE_CURRENT_SOURCE_DIR}/plugins/snapshottipsy.cc ${CMAKE_CURRENT_SOURCE_DIR}/plugins/tipsy/tipsyio.cc)
list (REMOVE_ITEM hdrs1_files ${CMAKE_CURRENT_SOURCE_DIR}/plugins/snapshottipsy.h ${CMAKE_CURRENT_SOURCE_DIR}/plugins/tipsy/tipsyio.h)
endif()
# Destination path for the lib
SET(LIBRARY_OUTPUT_PATH LIB)
# compilation options
ADD_DEFINITIONS(-DQT_PLUGIN)
ADD_DEFINITIONS(-DQT_STATICPLUGIN)
ADD_DEFINITIONS(-DQT_OPENGL_LIB)
ADD_DEFINITIONS(-DQT_GUI_LIB)
ADD_DEFINITIONS(-DQT_CORE_LIB)
ADD_DEFINITIONS(-DQT_PRINTSUPPORT_LIB)
ADD_DEFINITIONS(-D__x86_64__=1) # fix compilation on fedora > 30
ADD_DEFINITIONS(${QT_DEFINITIONS})
if (WIN32)
ADD_DEFINITIONS(-DUNICODE -DGLEW_STATIC)
endif()
if (NOT APPLE)
ADD_DEFINITIONS(-fopenmp)
endif()
if (APPLE)
#set(QMAKE_MACOSX_DEPLOYMENT_TARGET 10.9)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
#ADD_DEFINITIONS(-mmacosx-version-min=10.9)
endif()
ADD_DEFINITIONS(-fPIC)
set (CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
# Add compiler flags for building executables (-fPIE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
# Make sure the compiler can find include files from our Hello library.
include_directories (${PROJECT_SOURCE_DIR}/plugins ${PROJECT_SOURCE_DIR}/plugins/nemolight/inc ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/plugins/ftm ${PROJECT_SOURCE_DIR}/plugins/gadget ${PROJECT_SOURCE_DIR}/plugins/tipsy ${PROJECT_SOURCE_DIR}/src/glew ${PROJECT_SOURCE_DIR}/plugins/network ${PROJECT_SOURCE_DIR}/plugins/ramses ${PROJECT_SOURCE_DIR}/plugins/zlib ${PROJECT_SOURCE_DIR}/3rdparty/pfntlib ${PROJECT_SOURCE_DIR}/utils)
include_directories (${Qt5Widgets_INCLUDE_DIRS} ${Qt5Core_INCLUDE_DIRS} ${Qt5OpenGL_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS} {Qt5PrintSupport_INCLUDE_DIRS})
include_directories(/usr/include/CCfits /opt/local/include /opt/local/include/CCfits /usr/include/cfitsio /usr/local/include/CCfits)
include_directories(/usr/include/tirpc)
include_directories(${PROJECT_SOURCE_DIR}/plugins/gadgeth5 ${HDF5_INCLUDE_DIRS})
if (APPLE)
include_directories(/usr/include/malloc /usr/X11/include)
endif()
# run moc files
QT5_WRAP_CPP(moc1_src ${hdrs1_files})
# create library "uns"
add_library (uns STATIC ${moc1_src} ${lib_files})
#
# -----------------------
# Glnemo2 binary PROGRAM
# -----------------------
# Make sure the linker can find the Hello library once it is built.
if (APPLE)
link_directories (${CMAKE_BINARY_DIR}/LIB /opt/local/lib /usr/local/lib )
endif()
# Glew file
set (glew src/glew/glew.c)
# Find all cpp sources files
FILE(GLOB src_files src/*.cc)
# find all header's file
FILE(GLOB hdrs_files src/*.h)
# Find all UI's files
FILE(GLOB ui_files src/*.ui)
# Find Resource file
SET(rcs_file src/glnemo.qrc)
# compute ressources
QT5_ADD_RESOURCES( rc_src ${rcs_file} )
# run uic files
QT5_WRAP_UI(ui_headers ${ui_files})
# run moc files
QT5_WRAP_CPP(moc_src ${hdrs_files})
# we need the following to be able to include headers produced by uic in our code
# (CMAKE_BINARY_DIR holds a path to the build directory, while INCLUDE_DIRECTORIES()
# works just like INCLUDEPATH from qmake)
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )
# Executbale output path
if (UNIX AND NOT APPLE )
set(EXECUTABLE_OUTPUT_PATH bin)
endif ()
if (APPLE)
set(EXECUTABLE_OUTPUT_PATH "")
endif ()
add_executable (glnemo2 WIN32 MACOSX_BUNDLE ${src_files} ${rc_src} ${ui_headers} ${moc_src} ${glew})
# Link the executable to the Hello library.
set (GOMP "gomp")
if (APPLE)
set (GOMP "")
endif()
#target_link_libraries (glnemo2 uns z ${OPENGL_LIBRARY} ${QT_LIBRARIES} ${GOMP} CCfits cfitsio ${HDF5_CXX_LIBRARIES_LIST} )
# special ARCH LINUX
if (EXISTS "/usr/lib64/libtirpc.so" OR EXISTS "/usr/lib/x86_64-linux-gnu/libtirpc.so")
set (TIRPC "tirpc")
else()
set (TIRPC "")
endif()
target_link_libraries (glnemo2 uns z ${OPENGL_LIBRARY} ${QT_LIBRARIES} ${GOMP} CCfits cfitsio ${TIRPC} ${HDF5_CXX_LIBRARIES} )
qt5_use_modules(glnemo2 Gui Widgets Core OpenGL Network PrintSupport)
# INSTALLATION
IF (NEMO_INSTALLED)
set (CMAKE_INSTALL_PREFIX $ENV{NEMO})
INSTALL(FILES ${PROJECT_SOURCE_DIR}/man/man1/glnemo2.1 DESTINATION man/man1)
ELSE()
set(CMAKE_INSTALL_PREFIX "/usr")
ENDIF ()
MESSAGE(STATUS "CMAKE_INSTALL_PREFIX :" ${CMAKE_INSTALL_PREFIX} )
# VERSION
if (EXISTS "${PROJECT_SOURCE_DIR}/src/version.h") # detect version from "version.h" file
set(CURRENT_VERSION "")
file(READ "${PROJECT_SOURCE_DIR}/src/version.h" CURRENT_VERSION_H)
# GLNEMO2_MAJOR
string(REGEX MATCH "GLNEMO2_MAJOR \"([a-zA-Z0-9.-]+)\"" XXXX "${CURRENT_VERSION_H}")
set(PROJECT_VERSION_MAJOR ${CMAKE_MATCH_1})
# GLNEMO2_MINOR
string(REGEX MATCH "GLNEMO2_MINOR \"([a-zA-Z0-9.-]+)\"" XXXX "${CURRENT_VERSION_H}")
set(PROJECT_VERSION_MINOR ${CMAKE_MATCH_1})
# GLNEMO2_PATCH
string(REGEX MATCH "GLNEMO2_PATCH \"([a-zA-Z0-9.-]+)\"" XXXX "${CURRENT_VERSION_H}")
set(PROJECT_VERSION_PATCH ${CMAKE_MATCH_1})
# GLNEMO2_EXTRA
string(REGEX MATCH "GLNEMO2_EXTRA \"([_a-zA-Z0-9.-]+)\"" XXXX "${CURRENT_VERSION_H}")
set(PROJECT_VERSION_EXTRA ${CMAKE_MATCH_1})
# PROJECT_VERSION
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}${PROJECT_VERSION_EXTRA}")
message(STATUS "Project Version = " ${PROJECT_VERSION})
endif()
#set(PROJECT_VERSION_MAJOR "1")
#set(PROJECT_VERSION_MINOR "9")
#set(PROJECT_VERSION_PATCH "0")
#set(PROJECT_VERSION_EXTRA "-dev")
#set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}${PROJECT_VERSION_EXTRA}")
if (APPLE)
#set(CMAKE_INSTALL_PREFIX "/Applications")
set(CMAKE_INSTALL_PREFIX "")
set(BIN_INSTALL_DIR ".")
set(DOC_INSTALL_DIR ".")
endif()
message("${PROJECT_NAME} will be installed to ${CMAKE_INSTALL_PREFIX}")
#install(TARGETS ${PROJECT_NAME} DESTINATION ${BIN_INSTALL_DIR})
if (UNIX AND NOT APPLE)
INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_PATH}/glnemo2 DESTINATION bin)
#INSTALL(CODE "execute_process(COMMAND ${CMAKE_STRIP} bin/glnemo2)")
#INSTALL(CODE "execute_process(COMMAND ${CMAKE_STRIP} _CPack_Packages/${CPACK_TOPLEVEL_TAG}/${CPACK_GENERATOR}/${PACK_PACKAGE_FILE_NAME}/${CMAKE_INSTALL_PREFIX}/bin/glnemo2)")
#include(PostInstall)
if (NOT NEMO_INSTALLED)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/man/man1/glnemo2.1 DESTINATION share/man/man1)
endif()
endif ()
if (APPLE)
INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/glnemo2.app DESTINATION . )
endif()
if(APPLE)
set(MACOSX_BUNDLE_INFO_STRING "${PROJECT_NAME} ${PROJECT_VERSION}")
set(MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_NAME} ${PROJECT_VERSION}")
set(MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_NAME} ${PROJECT_VERSION}")
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}")
#set(MACOSX_BUNDLE_COPYRIGHT "${PROJECT_COPYRIGHT_YEAR} ${PROJECT_VENDOR}")
set(MACOSX_BUNDLE_ICON_FILE "glnemo2.icns")
#set(MACOSX_BUNDLE_GUI_IDENTIFIER "${PROJECT_DOMAIN_SECOND}.${PROJECT_DOMAIN_FIRST}")
set(MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME}")
set(MACOSX_BUNDLE_RESOURCES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.app/Contents/Resources")
set(MACOSX_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/res/images/glnemo2.icns")
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${MACOSX_BUNDLE_RESOURCES})
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${MACOSX_BUNDLE_ICON} ${MACOSX_BUNDLE_RESOURCES})
endif()
# CPACK infos
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_NAME "glnemo2")
set(CPACK_PACKAGE_RELEASE 1)
set(CPACK_PACKAGE_CONTACT "Jean-Charles LAMBERT")
set(CPACK_PACKAGE_VENDOR "LAM - CeSAM")
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}.${LINUX_NAME}.${CMAKE_SYSTEM_PROCESSOR}")
#set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${LINUX_NAME}.${CMAKE_SYSTEM_PROCESSOR}")
# CPACK RPM specific
set(CPACK_RPM_CHANGELOG_FILE "${PROJECT_SOURCE_DIR}/ChangeLog")
set(CPACK_RPM_PACKAGE_LICENSE "CeCILL2")
set(CPACK_RPM_PACKAGE_DESCRIPTION "An interactive 3D visualization program for N-body snaphots")
# CPACK debian specific
set(CPACK_DEBIAN_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
set(CPACK_DEBIAN_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${LINUX_NAME})
IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE amd64)
ELSEIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
ENDIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CPACK_RPM_PACKAGE_DESCRIPTION})
if (APPLE)
set(CMAKE_INSTALL_PREFIX "/Applications")
set(CPACK_GENERATOR "DragNDrop")
set(CPACK_DMG_FORMAT "UDBZ")
set(CPACK_DMG_VOLUME_NAME "${PROJECT_NAME}")
set(CPACK_SYSTEM_NAME "OSX")
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}")
#set(CPACK_PACKAGE_ICON "${ICONS_DIR}/DMG.icns")
#set(CPACK_DMG_DS_STORE "${ICONS_DIR}/DMGDSStore")
#set(CPACK_DMG_BACKGROUND_IMAGE "${ICONS_DIR}/DMGBackground.png")
endif()
# stripping
if (NOT WIN32)
#SET(CPACK_STRIP_FILES {CMAKE_INSTALL_PREFIX}/bin/glnemo2)
#SET(CPACK_STRIP_FILES "True")
#SET(CPACK_SET_DESTDIR On)
set(CMAKE_INSTALL_DO_STRIP TRUE)
#SET(CPACK_INSTALL_PREFIX "/usr")
#SET(CMAKE_INSTALL_PREFIX ${CPACK_INSTALL_PREFIX})
endif()
# This must always be last!
include(CPack)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION "${BIN_INSTALL_DIR}")
include(InstallRequiredSystemLibraries)
if(APPLE)
set(EXECUTABLE "${PROJECT_NAME}.app")
endif()
if(APPLE) # OR WIN32)
include(DeployQt5)
#set(LIST_PLUGIN "Qt5::AccessibleFactory;Qt5::QJpegPlugin;Qt5::QICNSPlugin;Qt5::QCocoaPrinterSupportPlugin")
# The following part give me a big headeach, seriously....
# it's intended to add plugin in DMG package in order to have all dependencies resolved.
# So far, I am not abble to add PrintingSupport though... :( ...which should come from
# Qt5::QCocoaPrinterSupportPlugin.... but fails when I run cmake command...
#
#set(LIST_PLUGIN "Qt5::AccessibleFactory;Qt5::QJpegPlugin;Qt5::QICNSPlugin")
set(LIST_PLUGIN "Qt5::QJpegPlugin;Qt5::QICNSPlugin")
set (QT_ADD_PLUGIN "")
foreach (plugin ${LIST_PLUGIN})
get_property(QT_GET_PLUGIN TARGET ${plugin} PROPERTY LOCATION_RELEASE)
message( ${plugin} " : " ${QT_GET_PLUGIN})
get_filename_component(xx ${QT_GET_PLUGIN} DIRECTORY)
list (APPEND QT_ADD_PLUGIN ${QT_GET_PLUGIN})
endforeach()
# See macdeployqt source code to find a hack :
# https://qt.gitorious.org/qt/qttools/source/4b711fec48c395ab4e486dd1a789309d4d488e9d:src/macdeployqt/shared/shared.cpp
# Ugly hack to add printerplugin support
get_filename_component(xx ${QT_GET_PLUGIN} DIRECTORY)
get_filename_component(xx ${xx} DIRECTORY)
set (PrinterPlugin "${xx}/printsupport/libcocoaprintersupport.dylib")
message ("PrinterPlugin = " ${PrinterPlugin})
list (APPEND QT_ADD_PLUGIN ${PrinterPlugin})
install_qt5_executable("${EXECUTABLE}" "${QT_ADD_PLUGIN}")
endif()