-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
384 lines (324 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
cmake_minimum_required(VERSION 2.8.11)
project(i-score)
##################################
######### Settings ###############
##################################
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};/usr/share/cmake/Jamoma;/usr/local/jamoma/share/cmake/Jamoma;")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Network Xml Svg PrintSupport)
include_directories("${PROJECT_SOURCE_DIR}/headers")
include_directories("${PROJECT_SOURCE_DIR}/headers/GUI")
include_directories("${PROJECT_SOURCE_DIR}/headers/data")
add_definitions(-D__Types__)
add_definitions(-DTT_NO_DSP)
#TODO find_package
if(UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-unused-parameter -Wno-deprecated-register -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-conversion")
include_directories("/usr/include/libxml2")
if(APPLE)
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -stdlib=libc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++")
else()
endif()
# set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
elseif(WIN32)
add_definitions(-DNOMINMAX)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
include_directories("C:\\Program Files (x86)\\GnuWin32\\include")
include_directories("C:\\Program Files (x86)\\libxml2-2.7.8.win32\\include")
include_directories("C:\\Program Files (x86)\\JamomaCore 0.6-dev\\include")
endif()
##################################
######### Source files ###########
##################################
set(PROJECT_HDRS
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/Abstract.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/AbstractBox.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/AbstractComment.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/AbstractCurve.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/AbstractRelation.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/AbstractParentBox.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/AbstractTriggerPoint.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/Engine.h
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/Maquette.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/data/NetworkMessages.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/AttributesEditor.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/BasicBox.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/Comment.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/CurveWidget.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/Help.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/LogarithmicSlider.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/MainWindow.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/MaquetteScene.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/MaquetteView.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/NetworkTree.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/ParentBox.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/PlayingThread.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/Relation.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/TriggerPoint.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/BoxWidget.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/TimeBarWidget.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/DeviceEdit.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/HeaderPanelWidget.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/ConditionalRelation.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/TriggerPointEdit.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/IScoreApplication.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/CurvesComboBox.hpp
${CMAKE_CURRENT_SOURCE_DIR}/headers/DelayedDelete.h
${CMAKE_CURRENT_SOURCE_DIR}/headers/GlobalEventFilter.h
${CMAKE_CURRENT_SOURCE_DIR}/headers/GUI/NetworkUpdater.h)
set(PROJECT_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/AbstractBox.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/AbstractComment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/AbstractCurve.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/AbstractParentBox.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/AbstractRelation.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/AbstractTriggerPoint.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/Engine.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/Maquette.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/data/NetworkMessages.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/AttributesEditor.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/BasicBox.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/Comment.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/CurveWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/Help.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/LogarithmicSlider.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/MainWindow.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/MaquetteScene.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/MaquetteView.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/NetworkTree.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/ParentBox.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/PlayingThread.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/Relation.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/TriggerPoint.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/BoxWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/TimeBarWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/DeviceEdit.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/HeaderPanelWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/ConditionalRelation.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/TriggerPointEdit.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/IScoreApplication.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/CurvesComboBox.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/GUI/NetworkUpdater.cpp)
IF(APPLE)
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/resources/images/i-score.icns"
PROPERTIES
MACOSX_PACKAGE_LOCATION Resources)
ENDIF(APPLE)
qt5_add_resources(i-score_RESOURCES_RCC "i-score.qrc")
#resources/translations = i-score_en.ts i-score_fr.ts
##################################
############ Target ##############
##################################
add_executable(i-score WIN32 MACOSX_BUNDLE
${PROJECT_SRCS}
${PROJECT_HDRS}
${i-score_RESOURCES_RCC}
"${CMAKE_CURRENT_SOURCE_DIR}/resources/images/i-score.icns")
if(APPLE)
set_target_properties(i-score PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
set_target_properties(i-score PROPERTIES MACOSX_BUNDLE_ICON_FILE "${CMAKE_CURRENT_SOURCE_DIR}/resources/images/i-score.icns")
#set_target_properties(i-score PROPERTIES MACOSX_BUNDLE_STARTUP_COMMAND "i-score")
endif()
##################################
############ Libraries ###########
##################################
find_package(Jamoma 0.6 REQUIRED)
if(WIN32)
set(JAMOMA_LIB_FOLDER_WIN32 "c:\\Program Files (x86)\\JamomaCore 0.6-dev\\lib")
FILE(TO_CMAKE_PATH ${JAMOMA_LIB_FOLDER_WIN32} JAMOMA_LIB_FOLDER)
endif()
target_link_libraries(i-score Jamoma::Foundation
Jamoma::Modular
Jamoma::Score
Qt5::Core
Qt5::Gui
Qt5::Svg
Qt5::Xml
Qt5::Network
Qt5::Widgets
Qt5::PrintSupport)
if(APPLE)
target_link_libraries(i-score -L/usr/local/lib/ -lgecodekernel -lgecodesupport -lgecodeint -lgecodeset -lgecodedriver -lgecodeflatzinc -lgecodeminimodel -lgecodesearch -lgecodefloat)
endif()
#############################
######## Packaging ##########
#############################
## Bundlin' like mad
set(plugin_dest_dir bin)
set(qtconf_dest_dir bin)
set(APPS "\${CMAKE_INSTALL_PREFIX}/bin/i-score")
if(APPLE)
set(plugin_dest_dir i-score.app/Contents/MacOS)
set(qtconf_dest_dir i-score.app/Contents/Resources)
set(APPS "\${CMAKE_INSTALL_PREFIX}/i-score.app")
elseif(WIN32)
set(APPS "\${CMAKE_INSTALL_PREFIX}/bin/i-score.exe")
endif()
INSTALL(TARGETS i-score
BUNDLE DESTINATION . COMPONENT Runtime
RUNTIME DESTINATION bin COMPONENT Runtime)
# Beware : Fifth circle of the DLL Hell
if(WIN32)
# Qt stuff
if(CMAKE_BUILD_TYPE MATCHES Debug)
get_target_property(QtWinPlugin Qt5::QWindowsIntegrationPlugin LOCATION_Debug)
file(TO_CMAKE_PATH "C:\\Qt\\5.3\\msvc2013\\bin\\libEGLd.dll" LIBEGL_DLL)
elseif(CMAKE_BUILD_TYPE MATCHES Release)
get_target_property(QtWinPlugin Qt5::QWindowsIntegrationPlugin LOCATION)
file(TO_CMAKE_PATH "C:\\Qt\\5.3\\msvc2013\\bin\\libEGL.dll" LIBEGL_DLL)
endif()
install(FILES "${QtWinPlugin}" DESTINATION "${plugin_dest_dir}/platforms" COMPONENT Runtime)
install(FILES ${LIBEGL_DLL} DESTINATION bin COMPONENT Runtime)
# Libraries
file(TO_CMAKE_PATH "C:\\Qt\\5.3\\msvc2013\\bin" QT_FOLDER)
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\libxml2-2.7.8.win32\\bin" LIBXML_FOLDER)
# Fuck this
file(TO_CMAKE_PATH "W:\\OSSIA_win\\Jamoma\\Core\\Foundation\\library\\libiconv\\bin" LIBICONV_FOLDER)
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\zlib" ZLIB_FOLDER)
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\redist\\x86\\Microsoft.VC120.CRT" MSVC_REDIST_RELEASE)
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\redist\\Debug_NonRedist\\x86\\Microsoft.VC120.DebugCRT" MSVC_REDIST_DEBUG)
install(FILES "${MSVC_REDIST_RELEASE}/msvcr120.dll"
"${MSVC_REDIST_RELEASE}/msvcp120.dll"
"${MSVC_REDIST_DEBUG}/msvcr120d.dll"
"${MSVC_REDIST_DEBUG}/msvcp120d.dll"
DESTINATION bin
COMPONENT Runtime)
# Jamoma extensions
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\JamomaCore 0.6-dev\\lib\\jamoma" JAMOMA_EXTENSIONS_FOLDER)
set(JAMOMA_EXTENSIONS
"${JAMOMA_EXTENSIONS_FOLDER}/Scenario.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/Automation.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/Interval.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/OSC.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/Minuit.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/MIDI.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/AnalysisLib.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/DataspaceLib.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/FunctionLib.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/System.ttdll"
"${JAMOMA_EXTENSIONS_FOLDER}/NetworkLib.ttdll")
install(FILES ${JAMOMA_EXTENSIONS}
DESTINATION bin
COMPONENT Runtime)
# Jamoma extensions also require their own DLLs.
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\Portmidi\\lib\\portmidi.dll" PORTMIDI_DLL)
install(FILES ${PORTMIDI_DLL} DESTINATION bin COMPONENT Runtime)
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\pthread-win32\\dll\\x86\\pthreadVC2.dll" PTHREAD_DLL)
install(FILES ${PTHREAD_DLL} DESTINATION bin COMPONENT Runtime)
file(TO_CMAKE_PATH "C:\\Program Files (x86)\\Gecode\\bin" GECODE_DLL_FOLDER)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(GECODE_WIN32_BUILD_TYPE "d")
else()
set(GECODE_WIN32_BUILD_TYPE "r")
endif()
set(GECODE_DLLS
"${GECODE_DLL_FOLDER}/GecodeDriver-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeFlatZinc-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeInt-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeFloat-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeGist-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeKernel-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeMinimodel-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeSet-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeSupport-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll"
"${GECODE_DLL_FOLDER}/GecodeSearch-4-3-0-${GECODE_WIN32_BUILD_TYPE}-x86.dll")
install(FILES ${GECODE_DLLS} DESTINATION bin COMPONENT Runtime)
set(DIRS "${QT_FOLDER}" "${JAMOMA_LIB_FOLDER}/../bin" "${JAMOMA_LIB_FOLDER}" "${JAMOMA_EXTENSIONS_FOLDER}" "${LIBXML_FOLDER}" "${LIBICONV_FOLDER}" "${ZLIB_FOLDER}" )
#~ set(DIRS ${QtCore_location} ${QtSvg_location} ${QtXml_location} ${QtNetwork_location} ${QtWidgets_location} ${QtPrintSupport_location})
install(CODE "
file(GLOB_RECURSE QTPLUGINS
\"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/platforms/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
set(PLUGINS ${QTPLUGINS} ${JAMOMA_EXTENSIONS})
include(BundleUtilities)
fixup_bundle(\"${APPS}\" \"${PLUGINS}\" \"${DIRS}\")
"
COMPONENT Runtime)
# VC++ redistributable
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/redist/vcredist_2010_x86.exe"
DESTINATION redist)
endif()
#INSTALL(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/i-score" DESTINATION "bin")
## CPack-specific stuff
set(CPACK_PACKAGE_NAME "i-score")
set(CPACK_PACKAGE_VENDOR "i-score")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "An intermedia sequencer for the precise and flexible scripting of interactive scenarios.")
set(CPACK_PACKAGE_VERSION "0.2.3")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "2")
set(CPACK_SOURCE_GENERATOR TGZ)
set(CPACK_SOURCE_PACKAGE_FILE_NAME "i-score-0.2")
if(UNIX)
if(APPLE)
set(CPACK_GENERATOR "DragNDrop")
set(CPACK_PACKAGE_FILE_NAME "i-score")
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/resources/images/i-score.icns")
install(DIRECTORY installer_data/examples
DESTINATION .)
install(DIRECTORY installer_data/documentation
DESTINATION .)
install(DIRECTORY installer_data/Licenses
DESTINATION .)
install(CODE "execute_process(COMMAND ${CMAKE_SOURCE_DIR}/deploy_osx.sh)")
else()
# Debian... Others will come.
set(CPACK_GENERATOR "DEB")
set(CPACK_SET_DESTDIR true)
set(CPACK_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
set(CPACK_SOURCE_GENERATOR TGZ)
set(CPACK_SOURCE_PACKAGE_FILE_NAME "i-score-0.2")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "i-score devs <i-score-devs@lists.sourceforge.net>")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "jamomacore, libxml2, libqt5core5a, libqt5gui5, libqt5svg5, libqt5xml5, libqt5network5, libqt5printsupport5")
set(CPACK_DEBIAN_PACKAGE_SECTION "sound")
install(FILES resources/linux/i-score.desktop
DESTINATION /usr/share/applications)
install(FILES resources/linux/i-score.png
DESTINATION /usr/share/pixmaps)
install(DIRECTORY installer_data/examples
DESTINATION /usr/share/doc/i-score)
install(DIRECTORY installer_data/documentation
DESTINATION /usr/share/doc/i-score)
install(DIRECTORY installer_data/Licenses
DESTINATION /usr/share/doc/i-score)
endif()
elseif(WIN32)
set(CPACK_GENERATOR "NSIS")
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
ExecWait '\\\"$INSTDIR\\\\redist\\\\vcredist_2010_x86.exe\\\" /q /norestart'
"
)
set(CPACK_PACKAGE_EXECUTABLES "i-score;i-score")
set(CPACK_NSIS_CONTACT "i-score-devs@lists.sourceforge.net")
set(CPACK_COMPONENTS_ALL i-score)
set ( CPACK_PACKAGE_VERSION "0.2.3" )
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/installer_data/License.md")
set(CPACK_MONOLITHIC_INSTALL TRUE)
set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/resources/windows/i-score.ico")
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/resources/windows/i-score.ico")
#set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/resources/windows/i-score.ico")
set(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.i-score.org")
set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.i-score.org")
set(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
set(CPACK_NSIS_MENU_LINKS
"examples" "Examples"
"documentation" "Documentation"
"Licenses" "Licenses"
"http://www.i-score.org" "i-score website"
)
set(CPACK_NSIS_MODIFY_PATH "ON")
set(CPACK_CREATE_DESKTOP_LINKS i-score)
install(DIRECTORY installer_data/examples
DESTINATION .)
install(DIRECTORY installer_data/documentation
DESTINATION .)
install(DIRECTORY installer_data/Licenses
DESTINATION .)
endif()
INCLUDE(CPack)