Fix typo in image editor grease pencil panel
[blender.git] / source / creator / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 setup_libdirs()
27
28 blender_include_dirs(
29         ../../intern/guardedalloc
30         ../../intern/glew-mx
31         ../blender/blenlib
32         ../blender/blenkernel
33         ../blender/blenloader
34         ../blender/depsgraph
35         ../blender/editors/include
36         ../blender/makesrna
37         ../blender/imbuf
38         ../blender/render/extern/include
39         ../blender/makesdna
40         ../blender/gpu
41         ../blender/windowmanager
42 )
43
44 add_definitions(${GL_DEFINITIONS})
45 blender_include_dirs("${GLEW_INCLUDE_PATH}")
46
47 if(WIN32)
48         blender_include_dirs(../../intern/utfconv)
49 endif()
50
51 if(WITH_LIBMV)
52         blender_include_dirs(../../intern/libmv)
53         add_definitions(-DWITH_LIBMV)
54 endif()
55
56 if(WITH_CYCLES AND WITH_CYCLES_LOGGING)
57         blender_include_dirs(../../intern/cycles/blender)
58         add_definitions(-DWITH_CYCLES_LOGGING)
59 endif()
60
61 if(WITH_CODEC_FFMPEG)
62         add_definitions(-DWITH_FFMPEG)
63 endif()
64
65 if(WITH_PYTHON)
66         blender_include_dirs(../blender/python)
67         add_definitions(-DWITH_PYTHON)
68
69         if(WITH_PYTHON_SECURITY)
70                 add_definitions(-DWITH_PYTHON_SECURITY)
71         endif()
72 endif()
73
74 if(WITH_HEADLESS)
75         add_definitions(-DWITH_HEADLESS)
76 endif()
77
78 if(WITH_GAMEENGINE)
79         blender_include_dirs(../gameengine/BlenderRoutines)
80
81         add_definitions(-DWITH_GAMEENGINE)
82 endif()
83
84 if(WITH_SDL)
85         if(WITH_SDL_DYNLOAD)
86                 add_definitions(-DWITH_SDL_DYNLOAD)
87                 blender_include_dirs(../../extern/sdlew/include)
88         endif()
89         add_definitions(-DWITH_SDL)
90 endif()
91
92 if(WITH_BINRELOC)
93         add_definitions(-DWITH_BINRELOC)
94         blender_include_dirs(${BINRELOC_INCLUDE_DIRS})
95 endif()
96
97 if(WITH_FREESTYLE)
98         add_definitions(-DWITH_FREESTYLE)
99         blender_include_dirs(../blender/freestyle)
100 endif()
101
102 # Setup the exe sources and buildinfo
103 set(SRC
104         creator.c
105 )
106
107 # MSVC 2010 gives linking errors with the manifest
108 if(WIN32 AND NOT UNIX)
109         string(SUBSTRING ${BLENDER_VERSION} 0 1 bver1)
110         string(SUBSTRING ${BLENDER_VERSION} 2 1 bver2)
111         string(SUBSTRING ${BLENDER_VERSION} 3 1 bver3)
112         if(MINGW)
113                 add_definitions(
114                         -DWINDRES
115                         -DBLEN_VER_RC_STR_M=${BLENDER_VERSION}
116                         -DBLEN_VER_RC_1=${bver1}
117                         -DBLEN_VER_RC_2=${bver2}
118                         -DBLEN_VER_RC_3=${bver3}
119                         -DBLEN_VER_RC_4=0
120                 )
121         else()
122                 add_definitions(
123                         -DBLEN_VER_RC_STR=${BLENDER_VERSION}
124                         -DBLEN_VER_RC_1=${bver1}
125                         -DBLEN_VER_RC_2=${bver2}
126                         -DBLEN_VER_RC_3=${bver3}
127                         -DBLEN_VER_RC_4=0
128                 )
129         endif()
130
131
132         list(APPEND SRC
133                 ../icons/winblender.rc
134         )
135 endif()
136
137 if(WITH_BUILDINFO)
138         add_definitions(-DWITH_BUILDINFO)
139         # --------------------------------------------------------------------------
140         # These defines could all be moved into the header below
141         string(REPLACE " " "\ " BUILDINFO_CFLAGS "${CMAKE_C_FLAGS}")
142         string(REPLACE " " "\ " BUILDINFO_CXXFLAGS "${CMAKE_CXX_FLAGS}")
143         string(REPLACE " " "\ " BUILDINFO_LINKFLAGS "${PLATFORM_LINKFLAGS}")
144         add_definitions(
145                 # # define in header now, else these get out of date on rebuilds.
146                 # -DBUILD_DATE="${BUILD_DATE}"
147                 # -DBUILD_TIME="${BUILD_TIME}"
148                 # -DBUILD_COMMIT_TIMESTAMP="${BUILD_COMMIT_TIMESTAMP}"
149                 # -DBUILD_COMMIT_TIME="${BUILD_COMMIT_TIME}"
150                 # -DBUILD_COMMIT_DATE="${BUILD_COMMIT_DATE}"
151                 # -DBUILD_HASH="${BUILD_HASH}"
152                 # -DBUILD_BRANCH="${BUILD_BRANCH}"
153                 -DWITH_BUILDINFO_HEADER # alternative to lines above
154                 -DBUILD_PLATFORM="${CMAKE_SYSTEM_NAME}"
155                 -DBUILD_TYPE="${CMAKE_BUILD_TYPE}"
156                 -DBUILD_CFLAGS="${BUILDINFO_CFLAGS}"
157                 -DBUILD_CXXFLAGS="${BUILDINFO_CXXFLAGS}"
158                 -DBUILD_LINKFLAGS="${BUILDINFO_LINKFLAGS}"
159                 -DBUILD_SYSTEM="CMake"
160         )
161
162         # --------------------------------------------------------------------------
163         # write header for values that change each build
164         # note, generaed file is in build dir's source/creator
165         #       except when used as an include path.
166
167         # include the output directory, where the buildinfo.h file is generated
168         include_directories(${CMAKE_CURRENT_BINARY_DIR})
169
170
171         # XXX, "_buildinfo.h" is used twice here,
172         # because we rely on that file being detected as missing
173         # every build so that the real header "buildinfo.h" is updated.
174         #
175         # Keep this until we find a better way to resolve!
176
177         # a custom target that is always built
178         add_custom_target(buildinfo ALL
179                 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_buildinfo.h)
180
181         # creates buildinfo.h using cmake script
182         add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_buildinfo.h
183                 COMMAND ${CMAKE_COMMAND}
184                 -DSOURCE_DIR=${CMAKE_SOURCE_DIR}
185                 -P ${CMAKE_SOURCE_DIR}/build_files/cmake/buildinfo.cmake)
186
187         # buildinfo.h is a generated file
188         set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/buildinfo.h
189                 PROPERTIES GENERATED TRUE
190                 HEADER_FILE_ONLY TRUE)
191
192         # add deps below, after adding blender
193         # -------------- done with header values.
194
195         list(APPEND SRC
196                 buildinfo.c
197         )
198
199         # make an object library so can load with it in tests
200         add_library(buildinfoobj OBJECT buildinfo.c)
201         add_dependencies(buildinfoobj buildinfo)
202 endif()
203
204 # message(STATUS "Configuring blender")
205 if(WITH_PYTHON_MODULE)
206         add_definitions(-DWITH_PYTHON_MODULE)
207
208         # creates ./bin/bpy.so which can be imported as a python module.
209         #
210         # note that 'SHARED' works on Linux and Windows,
211         # but not OSX which _must_ be 'MODULE'
212         add_library(blender MODULE ${SRC})
213         set_target_properties(
214                 blender
215                 PROPERTIES
216                         PREFIX ""
217                         OUTPUT_NAME bpy
218                         LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
219                         RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin  # only needed on windows
220         )
221
222         if(APPLE)
223                 set_target_properties(
224                         blender
225                         PROPERTIES
226                                 MACOSX_BUNDLE
227                                 LINK_FLAGS_RELEASE "${PLATFORM_LINKFLAGS}"
228                                 LINK_FLAGS_DEBUG "${PLATFORM_LINKFLAGS_DEBUG}"
229                 )
230         endif()
231
232         if(WIN32)
233                 # python modules use this
234                 set_target_properties(
235                         blender
236                         PROPERTIES
237                         SUFFIX ".pyd"
238                 )
239         endif()
240
241 else()
242         add_executable(blender ${EXETYPE} ${SRC})
243 endif()
244
245 if(WITH_BUILDINFO)
246         # explicitly say that the executable depends on the buildinfo
247         add_dependencies(blender buildinfo)
248 endif()
249
250
251 set(BLENDER_TEXT_FILES
252         ${CMAKE_SOURCE_DIR}/release/text/GPL-license.txt
253         ${CMAKE_SOURCE_DIR}/release/text/GPL3-license.txt
254         ${CMAKE_SOURCE_DIR}/release/text/Python-license.txt
255         ${CMAKE_SOURCE_DIR}/release/text/copyright.txt
256         ${CMAKE_SOURCE_DIR}/release/text/jemalloc-license.txt
257         # generate this file
258         # ${CMAKE_SOURCE_DIR}/release/text/readme.html
259         ${CMAKE_SOURCE_DIR}/release/datafiles/LICENSE-bfont.ttf.txt
260 )
261
262 if(WITH_INTERNATIONAL)
263         list(APPEND BLENDER_TEXT_FILES
264                 ${CMAKE_SOURCE_DIR}/release/datafiles/LICENSE-droidsans.ttf.txt
265                 ${CMAKE_SOURCE_DIR}/release/datafiles/LICENSE-bmonofont-i18n.ttf.txt
266         )
267 endif()
268
269
270 # -----------------------------------------------------------------------------
271 # Platform Specific Var: TARGETDIR_VER
272
273 if(UNIX AND NOT APPLE)
274         if(WITH_PYTHON_MODULE)
275                 if(WITH_INSTALL_PORTABLE)
276                         set(TARGETDIR_VER ${BLENDER_VERSION})
277                 else()
278                         set(TARGETDIR_VER ${PYTHON_SITE_PACKAGES}/${BLENDER_VERSION})
279                 endif()
280         else()
281                 if(WITH_INSTALL_PORTABLE)
282                         set(TARGETDIR_VER ${BLENDER_VERSION})
283                 else()
284                         set(TARGETDIR_VER share/blender/${BLENDER_VERSION})
285                 endif()
286         endif()
287
288 elseif(WIN32)
289         set(TARGETDIR_VER ${BLENDER_VERSION})
290
291 elseif(APPLE)
292         if(WITH_PYTHON_MODULE)
293                 set(TARGETDIR_VER ${BLENDER_VERSION})
294         else()
295                 set(TARGETDIR_VER blender.app/Contents/Resources/${BLENDER_VERSION})
296         endif()
297         # Skip relinking on cpack / install
298         set_target_properties(blender PROPERTIES BUILD_WITH_INSTALL_RPATH true)
299 endif()
300
301
302 # -----------------------------------------------------------------------------
303 # Install Targets (Generic, All Platforms)
304
305
306 # important to make a clean  install each time, else old scripts get loaded.
307 install(
308         CODE
309         "file(REMOVE_RECURSE ${TARGETDIR_VER})"
310 )
311
312 if(WITH_PYTHON)
313         # install(CODE "message(\"copying blender scripts...\")")
314         
315         # exclude addons_contrib if release
316         if("${BLENDER_VERSION_CYCLE}" STREQUAL "release")
317                 set(ADDON_EXCLUDE_CONDITIONAL "addons_contrib/*")
318         else()
319                 set(ADDON_EXCLUDE_CONDITIONAL "_addons_contrib/*")  # dummy, wont do anything
320         endif()
321
322         # do not install freestyle dir if disabled
323         if(NOT WITH_FREESTYLE)
324                 set(FREESTYLE_EXCLUDE_CONDITIONAL "freestyle/*")
325         else()
326                 set(FREESTYLE_EXCLUDE_CONDITIONAL "_freestyle/*")  # dummy, wont do anything
327         endif()
328
329         install(
330                 DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts
331                 DESTINATION ${TARGETDIR_VER}
332                 PATTERN ".git" EXCLUDE
333                 PATTERN "__pycache__" EXCLUDE
334                 PATTERN "${ADDON_EXCLUDE_CONDITIONAL}" EXCLUDE
335                 PATTERN "${FREESTYLE_EXCLUDE_CONDITIONAL}" EXCLUDE
336         )
337         
338         unset(ADDON_EXCLUDE_CONDITIONAL)
339         unset(FREESTYLE_EXCLUDE_CONDITIONAL)
340 endif()
341
342 # localization
343 if(WITH_INTERNATIONAL)
344         install(
345                 DIRECTORY
346                         ${CMAKE_SOURCE_DIR}/release/datafiles/fonts
347                 DESTINATION ${TARGETDIR_VER}/datafiles
348         )
349
350         set(_locale_dir "${CMAKE_SOURCE_DIR}/release/datafiles/locale")
351         set(_locale_target_dir ${TARGETDIR_VER}/datafiles/locale)
352
353         file(GLOB _po_files "${_locale_dir}/po/*.po")
354         foreach(_po_file ${_po_files})
355                 msgfmt_simple(${_po_file} _all_mo_files)
356         endforeach()
357
358         # Create a custom target which will compile all po to mo
359         add_custom_target(
360                 locales
361                 DEPENDS ${_all_mo_files})
362
363         add_dependencies(blender locales)
364
365         # Generate INSTALL rules
366         install(
367                 FILES ${_locale_dir}/languages
368                 DESTINATION ${_locale_target_dir}
369         )
370
371         foreach(_mo_file ${_all_mo_files})
372                 get_filename_component(_locale_name ${_mo_file} NAME_WE)
373                 install(
374                         FILES ${_mo_file}
375                         DESTINATION ${_locale_target_dir}/${_locale_name}/LC_MESSAGES
376                         RENAME blender.mo
377                 )
378                 unset(_locale_name)
379         endforeach()
380
381         unset(_all_mo_files)
382         unset(_po_files)
383         unset(_po_file)
384         unset(_mo_file)
385         unset(_locale_target_dir)
386
387         unset(_locale_dir)
388 endif()
389
390 # color management
391 if(WITH_OPENCOLORIO)
392         install(
393                 DIRECTORY ${CMAKE_SOURCE_DIR}/release/datafiles/colormanagement
394                 DESTINATION ${TARGETDIR_VER}/datafiles
395         )
396 endif()
397
398 # helpful tip when using make
399 if("${CMAKE_GENERATOR}" MATCHES ".*Makefiles.*")
400         # message after building.
401         add_custom_command(
402                 TARGET blender POST_BUILD MAIN_DEPENDENCY blender
403                 COMMAND ${CMAKE_COMMAND} -E echo 'now run: \"make install\" to copy runtime files and scripts to ${TARGETDIR_VER}'
404         )
405 endif()
406
407
408 # -----------------------------------------------------------------------------
409 # Install Targets (Platform Specific)
410
411 if(UNIX AND NOT APPLE)
412
413         if(NOT WITH_PYTHON_MODULE)
414                 if(WITH_DOC_MANPAGE)
415                         add_custom_target(
416                                 blender_man_page ALL
417                                 COMMAND ${CMAKE_SOURCE_DIR}/doc/manpage/blender.1.py
418                                         ${EXECUTABLE_OUTPUT_PATH}/blender
419                                         ${CMAKE_CURRENT_BINARY_DIR}/blender.1)
420                         add_dependencies(blender_man_page blender)
421                 endif()
422         endif()
423
424         # there are a few differences between portable and system install
425         if(WITH_PYTHON_MODULE)
426                 if(WITH_INSTALL_PORTABLE)
427                         install(
428                                 TARGETS blender
429                                 DESTINATION "."
430                         )
431                 else()
432                         install(
433                                 TARGETS blender
434                                 LIBRARY DESTINATION ${PYTHON_SITE_PACKAGES}
435                         )
436                 endif()
437                 # none of the other files are needed currently
438         elseif(WITH_INSTALL_PORTABLE)
439                 install(
440                         TARGETS blender
441                         DESTINATION "."
442                 )
443
444                 if(WITH_DOC_MANPAGE)
445                         install(
446                                 FILES ${CMAKE_CURRENT_BINARY_DIR}/blender.1
447                                 DESTINATION "."
448                         )
449                 endif()
450                 install(
451                         FILES
452                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/blender.desktop
453                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/scalable/apps/blender.svg
454                         DESTINATION "."
455                 )
456
457                 install(
458                         PROGRAMS
459                         ${CMAKE_SOURCE_DIR}/release/bin/blender-thumbnailer.py
460                         DESTINATION "."
461                 )
462
463                 set(BLENDER_TEXT_FILES_DESTINATION ".")
464         else()
465                 # main blender binary
466                 install(
467                         TARGETS blender
468                         DESTINATION bin
469                 )
470                 if(WITH_DOC_MANPAGE)
471                         # manpage only with 'blender' binary
472                         install(
473                                 FILES ${CMAKE_CURRENT_BINARY_DIR}/blender.1
474                                 DESTINATION share/man/man1
475                         )
476                 endif()
477
478                 # misc files
479                 install(
480                         FILES ${CMAKE_SOURCE_DIR}/release/freedesktop/blender.desktop
481                         DESTINATION share/applications
482                 )
483                 install(
484                         DIRECTORY
485                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/16x16
486                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/22x22
487                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/24x24
488                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/32x32
489                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/48x48
490                                 ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/256x256
491                         DESTINATION share/icons/hicolor
492                         PATTERN "*.svg" EXCLUDE
493                 )
494                 install(
495                         FILES ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/scalable/apps/blender.svg
496                         DESTINATION share/icons/hicolor/scalable/apps
497                 )
498                 install(
499                         PROGRAMS ${CMAKE_SOURCE_DIR}/release/bin/blender-thumbnailer.py
500                         DESTINATION bin
501                 )
502                 set(BLENDER_TEXT_FILES_DESTINATION share/doc/blender)
503         endif()
504
505         if(WITH_PYTHON)
506                 if(WITH_PYTHON_INSTALL)
507
508                         install(
509                                 FILES ${PYTHON_EXECUTABLE}
510                                 DESTINATION ${TARGETDIR_VER}/python/bin
511                         )
512
513                         # on some platforms (like openSUSE) Python is linked
514                         # to be used from lib64 folder.
515                         # determine this from Python's libraries path
516                         #
517                         # ugh, its possible 'lib64' is just a symlink to 'lib' which causes incorrect use of 'lib64'
518                         get_filename_component(_pypath_real ${PYTHON_LIBPATH} REALPATH)
519                         if(${_pypath_real} MATCHES "lib64$")
520                                 set(_target_LIB "lib64")
521                         else()
522                                 set(_target_LIB "lib")
523                         endif()
524                         unset(_pypath_real)
525
526                         # Copy the systems python into the install directory
527                         # install(CODE "message(\"copying a subset of the systems python...\")")
528                         install(
529                                 DIRECTORY ${PYTHON_LIBPATH}/python${PYTHON_VERSION}
530                                 DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}
531                                 PATTERN ".svn" EXCLUDE
532                                 PATTERN "__pycache__" EXCLUDE               # * any cache *
533                                 PATTERN "distutils" EXCLUDE                 # ./distutils
534                                 PATTERN "lib2to3" EXCLUDE                   # ./lib2to3
535                                 PATTERN "config" EXCLUDE                    # ./config
536                                 PATTERN "config-*" EXCLUDE                  # ./config-*
537                                 PATTERN "site-packages/*" EXCLUDE           # ./site-packages/*
538                                 PATTERN "tkinter" EXCLUDE                   # ./tkinter
539                                 PATTERN "lib-dynload/_tkinter.*" EXCLUDE    # ./lib-dynload/_tkinter.co
540                                 PATTERN "idlelib" EXCLUDE                   # ./idlelib
541                                 PATTERN "test" EXCLUDE                      # ./test
542                                 PATTERN "turtledemo" EXCLUDE                # ./turtledemo
543                                 PATTERN "turtle.py" EXCLUDE                 # ./turtle.py
544                         )
545
546                         # # doesnt work, todo
547                         # install(CODE "execute_process(COMMAND find ${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/python/lib/ -name '*.so' -exec strip -s {} '\;')")
548
549                         if(WITH_PYTHON_INSTALL_NUMPY)
550                                 # Install to the same directory as the source, so debian-like
551                                 # distros are happy with their policy.
552                                 set(_suffix "site-packages")
553                                 if(${PYTHON_NUMPY_PATH} MATCHES "dist-packages")
554                                         set(_suffix "dist-packages")
555                                 endif()
556                                 install(
557                                         DIRECTORY ${PYTHON_NUMPY_PATH}/numpy
558                                         DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/${_suffix}
559                                         PATTERN ".svn" EXCLUDE
560                                         PATTERN "__pycache__" EXCLUDE           # * any cache *
561                                         PATTERN "*.pyc" EXCLUDE                 # * any cache *
562                                         PATTERN "*.pyo" EXCLUDE                 # * any cache *
563                                         PATTERN "distutils" EXCLUDE             # ./distutils
564                                         PATTERN "oldnumeric" EXCLUDE            # ./oldnumeric
565                                         PATTERN "doc" EXCLUDE                   # ./doc
566                                         PATTERN "tests" EXCLUDE                 # ./tests
567                                         PATTERN "f2py" EXCLUDE                  # ./f2py - fortran/python interface code, not fun for blender devs.
568                                         PATTERN "include" EXCLUDE               # include dirs all over, we wont use NumPy/CAPI
569                                         PATTERN "*.h" EXCLUDE                   # some includes are not in include dirs
570                                         PATTERN "*.a" EXCLUDE                   # ./core/lib/libnpymath.a - for linking, we dont need.
571                                 )
572                                 unset(_suffix)
573                         endif()
574
575                         # Copy requests, we need to generalize site-packages
576                         if(WITH_PYTHON_INSTALL_REQUESTS)
577                                 set(_suffix "site-packages")
578                                 if(${PYTHON_REQUESTS_PATH} MATCHES "dist-packages")
579                                         set(_suffix "dist-packages")
580                                 endif()
581                                 install(
582                                         DIRECTORY ${PYTHON_REQUESTS_PATH}/requests
583                                         DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/${_suffix}
584                                         PATTERN ".svn" EXCLUDE
585                                         PATTERN "__pycache__" EXCLUDE           # * any cache *
586                                         PATTERN "*.pyc" EXCLUDE                 # * any cache *
587                                         PATTERN "*.pyo" EXCLUDE                 # * any cache *
588                                         PATTERN "cacert.pem" EXCLUDE            # for now we don't deal with security
589                                 )
590                                 # On some platforms requests does have extra dependencies.
591                                 set(_requests_deps "chardet" "urllib3")
592                                 foreach(_requests_dep ${_requests_deps})
593                                         if(EXISTS ${PYTHON_REQUESTS_PATH}/${_requests_dep})
594                                                 install(
595                                                         DIRECTORY ${PYTHON_REQUESTS_PATH}/${_requests_dep}
596                                                         DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/${_suffix}
597                                                         PATTERN ".svn" EXCLUDE
598                                                         PATTERN "__pycache__" EXCLUDE           # * any cache *
599                                                         PATTERN "*.pyc" EXCLUDE                 # * any cache *
600                                                         PATTERN "*.pyo" EXCLUDE                 # * any cache *
601                                                 )
602                                         endif()
603                                 endforeach()
604                                 if(EXISTS ${PYTHON_REQUESTS_PATH}/six.py)
605                                         install(
606                                                 FILES ${PYTHON_REQUESTS_PATH}/six.py
607                                                 DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/${_suffix}
608                                         )
609                                         endif()
610                                 unset(_requests_dep)
611                                 unset(_requests_deps)
612                                 unset(_suffix)
613                         endif()
614                         unset(_target_LIB)
615                         
616                 endif()
617         endif()
618 elseif(WIN32)
619
620         set(BLENDER_TEXT_FILES_DESTINATION ".")
621
622         if(WITH_PYTHON)
623                 string(REPLACE "." "" _PYTHON_VERSION_NO_DOTS ${PYTHON_VERSION})
624
625                 # MinGW TODO: This bit of Python configuration diverges from MSVC
626                 if(NOT CMAKE_COMPILER_IS_GNUCC)
627                         install(
628                                 FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}.dll ${LIBDIR}/python/lib/sqlite3.dll
629                                 DESTINATION "."
630                                 CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
631                         )
632
633                         install(
634                                 FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}_d.dll ${LIBDIR}/python/lib/sqlite3_d.dll
635                                 DESTINATION "."
636                                 CONFIGURATIONS Debug
637                         )
638                 endif()
639
640                 if(WITH_PYTHON_INSTALL)
641                         # note, as far as python is concerned 'RelWithDebInfo' is not debug since its without debug flags.
642
643                         install(DIRECTORY DESTINATION ${TARGETDIR_VER}/python)
644                         install(DIRECTORY DESTINATION ${TARGETDIR_VER}/python/lib)
645
646                         # WARNING: its important that 'CMAKE_INSTALL_CONFIG_NAME' is evaluated at build time
647                         # and _NOT_ configuration time, when modifying the lines below,
648                         # check it works in both Release & Debug mode.
649                         #
650                         # Edit with extreme care! - Campbell
651
652                         # extract python
653                         install(
654                                 CODE
655                                 "
656                                 message(STATUS \"Extracting Python to: \${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/python\")
657                                 if(\"\${CMAKE_INSTALL_CONFIG_NAME}\" MATCHES \"^([Dd][Ee][Bb][Uu][Gg])$\")
658                                         set(PYTHON_ZIP \"${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_d.tar.gz\")
659                                 else()
660                                         set(PYTHON_ZIP \"${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}.tar.gz\")
661                                 endif()
662
663                                 execute_process(
664                                         COMMAND \${CMAKE_COMMAND} -E make_directory
665                                                 \"\${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/python\"
666                                         COMMAND \${CMAKE_COMMAND} -E
667                                                 chdir \"\${CMAKE_INSTALL_PREFIX}/${BLENDER_VERSION}/python\"
668                                                 \${CMAKE_COMMAND} -E
669                                                 tar xzfv \"\${PYTHON_ZIP}\"
670                                 )
671                                 unset(PYTHON_ZIP)
672                                 "
673                         )
674
675                         # release/site-packages
676                         install(
677                                 DIRECTORY ${LIBDIR}/release/site-packages
678                                 DESTINATION ${BLENDER_VERSION}/python/lib
679                                 PATTERN ".svn" EXCLUDE
680                                 PATTERN "__pycache__" EXCLUDE           # * any cache *
681                                 PATTERN "*.pyc" EXCLUDE                 # * any cache *
682                                 PATTERN "*.pyo" EXCLUDE                 # * any cache *)
683                         )
684
685                         if(WITH_PYTHON_INSTALL_NUMPY)
686                                 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages
687                                         COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages)
688
689                                 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages/numpy
690                                         COMMAND ${CMAKE_COMMAND} -E tar xzvf "${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_numpy_1.9.tar.gz"
691                                         DEPENDS ${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_numpy_1.9.tar.gz
692                                                 ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages
693                                         WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages)
694                                 add_custom_target(python_numpy ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages/numpy)
695                                 install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages/numpy
696                                                 DESTINATION ${BLENDER_VERSION}/python/lib/site-packages)
697                         endif()
698
699
700                         # TODO(sergey): For unti we've got better way to deal with python binary
701                         install(
702                                 FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}.dll
703                                 DESTINATION ${BLENDER_VERSION}/python/bin
704                                 CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
705                         )
706                         install(
707                                 FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}_d.dll
708                                 DESTINATION ${BLENDER_VERSION}/python/bin
709                                 CONFIGURATIONS Debug
710                         )
711
712                         # MinGW needs Python DLL
713                         if(MINGW)
714                                 install(
715                                         FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}.dll
716                                         DESTINATION "."
717                                         CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
718                                 )
719                                 install(
720                                         FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}_d.dll
721                                         DESTINATION "."
722                                         CONFIGURATIONS Debug
723                                 )
724                         endif()
725                 endif()
726
727                 unset(_PYTHON_VERSION_NO_DOTS)
728         endif()
729
730         # EGL Runtime Components
731         if(WITH_GL_EGL)
732                 if(WIN32)
733                         install(FILES "${OPENGLES_DLL}"     DESTINATION ".")
734                         install(FILES "${OPENGLES_EGL_DLL}" DESTINATION ".")
735
736                         if(WITH_GL_ANGLE)
737                                 install(FILES "${D3DCOMPILER_DLL}" DESTINATION ".")
738                         endif()
739                 endif()
740         endif()
741
742         if(MSVC)
743                 install(
744                         FILES ${LIBDIR}/pthreads/lib/pthreadVC2.dll
745                         DESTINATION "."
746                 )
747         else()
748                 #MinGW64 comes with own version. For portable builds it will probaly have to be copied to work
749                 if(NOT WITH_MINGW64)
750                         install(
751                                 FILES ${LIBDIR}/pthreads/lib/pthreadGC2.dll
752                                 DESTINATION "."
753                         )
754                 elseif(WITH_MINGW64)
755                         install(
756                                 FILES 
757                                         ${LIBDIR}/binaries/libgcc_s_sjlj-1.dll
758                                         ${LIBDIR}/binaries/libwinpthread-1.dll
759                                         ${LIBDIR}/binaries/libstdc++-6.dll
760                                 DESTINATION "."
761                         )
762                         
763                         if(WITH_OPENMP)
764                                 install(
765                                         FILES 
766                                         ${LIBDIR}/binaries/libgomp-1.dll
767                                         DESTINATION "."
768                                 )
769                         endif()
770                 endif()
771         endif()
772
773         if(WITH_CODEC_FFMPEG)
774                 if(WITH_MINGW64)
775                         install(
776                                 FILES
777                                         ${LIBDIR}/ffmpeg/lib/avcodec-53.dll
778                                         ${LIBDIR}/ffmpeg/lib/avformat-53.dll
779                                         ${LIBDIR}/ffmpeg/lib/avdevice-53.dll
780                                         ${LIBDIR}/ffmpeg/lib/avutil-51.dll
781                                         ${LIBDIR}/ffmpeg/lib/swscale-2.dll
782                                         ${LIBDIR}/ffmpeg/lib/swresample-0.dll
783                                         ${LIBDIR}/ffmpeg/lib/xvidcore.dll
784                                 DESTINATION "."
785                         )
786                 else()
787                         install(
788                                 FILES
789                                         ${LIBDIR}/ffmpeg/lib/avcodec-55.dll
790                                         ${LIBDIR}/ffmpeg/lib/avformat-55.dll
791                                         ${LIBDIR}/ffmpeg/lib/avdevice-55.dll
792                                         ${LIBDIR}/ffmpeg/lib/avutil-52.dll
793                                         ${LIBDIR}/ffmpeg/lib/swscale-2.dll
794                                 DESTINATION "."
795                         )
796                 endif()
797         endif()
798
799         if(WITH_CODEC_SNDFILE)
800                 install(
801                         FILES ${LIBDIR}/sndfile/lib/libsndfile-1.dll
802                         DESTINATION "."
803                 )
804         endif()
805
806         if(WITH_OPENAL)
807                 install(
808                         FILES
809                                 ${LIBDIR}/openal/lib/OpenAL32.dll
810                         DESTINATION "."
811                 )
812                 # MinGW TODO: Need to update to a newer OpenAL version
813                 # which does not depend on wrap_oal.dll
814                 if(CMAKE_COMPILER_IS_GNUCC)
815                         install(
816                                 FILES
817                                         ${LIBDIR}/openal/lib/wrap_oal.dll
818                                 DESTINATION "."
819                         )
820                 endif()
821         endif()
822
823         if(WITH_SDL)
824                 #MinGW TODO: Update to SDL2
825                 if(NOT CMAKE_COMPILER_IS_GNUCC)
826                         install(
827                                 FILES ${LIBDIR}/sdl/lib/SDL2.dll
828                                 DESTINATION "."
829                         )
830                 else()
831                         install(
832                                 FILES ${LIBDIR}/sdl/lib/SDL.dll
833                                 DESTINATION "."
834                         )
835                 endif()
836         endif()
837         
838         if(WITH_SYSTEM_AUDASPACE)
839                 install(
840                         FILES
841                                 ${LIBDIR}/audaspace/lib/audaspace.dll
842                                 ${LIBDIR}/audaspace/lib/audaspace-c.dll
843                                 ${LIBDIR}/audaspace/lib/audaspace-py.dll
844                         DESTINATION "."
845                 )
846         endif()
847
848         if(NOT CMAKE_CL_64)
849                 install(
850                         FILES ${LIBDIR}/thumbhandler/lib/BlendThumb.dll
851                         DESTINATION "."
852                 )
853         endif()
854                 
855         install( # x86 builds can run on x64 Windows, so this is required at all times
856                 FILES ${LIBDIR}/thumbhandler/lib/BlendThumb64.dll
857                 DESTINATION "."
858         )
859
860         if(WITH_OPENCOLORIO)
861                 set(OCIOBIN ${LIBDIR}/opencolorio/bin)
862                 if(NOT MINGW)
863                         install(
864                                 FILES
865                                         ${OCIOBIN}/OpenColorIO.dll
866                                 DESTINATION "."
867                         )
868                 else()
869                         install(
870                                 FILES
871                                         ${OCIOBIN}/libOpenColorIO.dll
872                                 DESTINATION "."
873                         )
874                 endif()
875         endif()
876
877 elseif(APPLE)
878
879         # handy install macro to exclude files, we use \$ escape for the "to"
880         # argument when calling so ${BUILD_TYPE} does not get expanded
881         macro(install_dir from to)
882                 install(
883                         DIRECTORY ${from}
884                         DESTINATION ${to}
885                         PATTERN ".git" EXCLUDE
886                         PATTERN ".svn" EXCLUDE
887                         PATTERN "*.pyc" EXCLUDE
888                         PATTERN "*.pyo" EXCLUDE
889                         PATTERN "*.orig" EXCLUDE
890                         PATTERN "*.rej" EXCLUDE
891                         PATTERN "__pycache__" EXCLUDE
892                         PATTERN "__MACOSX" EXCLUDE
893                         PATTERN ".DS_Store" EXCLUDE
894                 )
895         endmacro()
896
897         set(OSX_APP_SOURCEDIR ${CMAKE_SOURCE_DIR}/release/darwin/blender.app)
898
899         # setup Info.plist
900         execute_process(COMMAND date "+%Y-%m-%d"
901                         OUTPUT_VARIABLE BLENDER_DATE
902                         OUTPUT_STRIP_TRAILING_WHITESPACE)
903
904         set_target_properties(blender PROPERTIES
905                 MACOSX_BUNDLE_INFO_PLIST ${OSX_APP_SOURCEDIR}/Contents/Info.plist
906                 MACOSX_BUNDLE_SHORT_VERSION_STRING ${BLENDER_VERSION}
907                 MACOSX_BUNDLE_LONG_VERSION_STRING "${BLENDER_VERSION} ${BLENDER_DATE}")
908
909         # Gather the date in finder-style
910         execute_process(COMMAND date "+%m/%d/%Y/%H:%M"
911         OUTPUT_VARIABLE SETFILE_DATE
912         OUTPUT_STRIP_TRAILING_WHITESPACE)
913
914         # Give the bundle actual creation/modification date
915         execute_process(COMMAND SetFile -d ${SETFILE_DATE} -m ${SETFILE_DATE} ${EXECUTABLE_OUTPUT_PATH}/blender.app)
916
917         install(
918                 TARGETS blender
919                 DESTINATION "."
920         )
921
922         # install release and app files
923         set(BLENDER_TEXT_FILES_DESTINATION ".")
924
925         install(
926                 FILES ${OSX_APP_SOURCEDIR}/Contents/PkgInfo
927                 DESTINATION blender.app/Contents
928         )
929
930         install_dir(
931                 ${OSX_APP_SOURCEDIR}/Contents/Resources
932                 blender.app/Contents/
933         )
934
935         if(WITH_OPENMP AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS '3.4')
936                 install(
937                         FILES ${LIBDIR}/openmp/lib/libiomp5.dylib
938                         DESTINATION blender.app/Contents/Resources/lib/
939                 )
940                 install(
941                         FILES ${LIBDIR}/openmp/LICENSE.txt
942                         DESTINATION "."
943                         RENAME LICENSE-libiomp5.txt
944                 )
945         endif()
946
947         if(WITH_LLVM AND NOT LLVM_STATIC)
948                 install(
949                         FILES ${LIBDIR}/llvm/lib/libLLVM-3.4.dylib
950                         DESTINATION blender.app/Contents/MacOS
951                 )
952         endif()
953
954         # python
955         if(WITH_PYTHON AND NOT WITH_PYTHON_MODULE AND NOT WITH_PYTHON_FRAMEWORK)
956                 # the python zip is first extract as part of the build process,
957                 # and then later installed as part of make install. this is much
958                 # quicker, and means we can easily exclude files on copy
959                 # Not needed for PYTHON_MODULE or WEB_PLUGIN due uses  Pyhon framework
960                 add_custom_target(
961                         extractpyzip
962                         DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/python)
963
964                 set(PYTHON_ZIP "python_${CMAKE_OSX_ARCHITECTURES}.zip")
965
966                 add_custom_command(
967                         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python
968                         COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/python/"
969                         COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/python/"
970                         COMMAND ${CMAKE_COMMAND} -E chdir "${CMAKE_CURRENT_BINARY_DIR}/python/"
971                                 ${CMAKE_COMMAND} -E tar xzfv "${LIBDIR}/release/${PYTHON_ZIP}"
972                         DEPENDS ${LIBDIR}/release/${PYTHON_ZIP})
973
974                 add_dependencies(blender extractpyzip)
975
976                 # copy extracted python files
977                 install_dir(
978                         ${CMAKE_CURRENT_BINARY_DIR}/python
979                         \${TARGETDIR_VER}
980                 )
981                 # copy site-packages files
982                 install_dir(
983                         ${LIBDIR}/release/site-packages
984                         ${CMAKE_CURRENT_BINARY_DIR}/python/lib/python${PYTHON_VERSION}/site-packages
985                 )
986
987                 install(DIRECTORY ${LIBDIR}/python/bin
988                         DESTINATION ${TARGETDIR_VER}/python
989                         USE_SOURCE_PERMISSIONS
990                 )
991         endif()
992         
993         # install blenderplayer bundle - copy of blender.app above. re-using macros et al
994         # note we are using OSX Bundle as base and copying Blender dummy bundle on top of it
995         if(WITH_GAMEENGINE AND WITH_PLAYER)
996                 set(OSX_APP_PLAYER_SOURCEDIR ${CMAKE_SOURCE_DIR}/release/darwin/blenderplayer.app)
997                 set(PLAYER_SOURCEINFO ${OSX_APP_PLAYER_SOURCEDIR}/Contents/Info.plist)
998                 set(PLAYER_TARGETDIR_VER blenderplayer.app/Contents/Resources/${BLENDER_VERSION})
999
1000
1001                 # important to make a clean  install each time else old scripts get loaded.
1002                 install(
1003                         CODE
1004                         "file(REMOVE_RECURSE ${PLAYER_TARGETDIR_VER})"
1005                 )
1006
1007                 # Give the bundle actual creation/modification date
1008                 execute_process(COMMAND SetFile -d ${SETFILE_DATE} -m ${SETFILE_DATE} ${EXECUTABLE_OUTPUT_PATH}/blenderplayer.app)
1009
1010                 install(
1011                         FILES ${OSX_APP_PLAYER_SOURCEDIR}/Contents/PkgInfo
1012                         DESTINATION blenderplayer.app/Contents
1013                 )
1014
1015                 install_dir(
1016                         ${OSX_APP_PLAYER_SOURCEDIR}/Contents/Resources
1017                         blenderplayer.app/Contents/
1018                 )
1019
1020                 if(WITH_OPENMP AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS '3.4')
1021                 install(
1022                 FILES ${LIBDIR}/openmp/lib/libiomp5.dylib
1023                 DESTINATION blenderplayer.app/Contents/Resources/lib/
1024                 )
1025                 endif()
1026
1027
1028                 # python
1029                 if(WITH_PYTHON AND NOT WITH_PYTHON_FRAMEWORK)
1030                         add_custom_command(
1031                                 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python
1032                                 COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/python/"
1033                                 COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/python/"
1034                                 COMMAND ${CMAKE_COMMAND} -E chdir "${CMAKE_CURRENT_BINARY_DIR}/python/"
1035                                         ${CMAKE_COMMAND} -E tar xzfv "${LIBDIR}/release/${PYTHON_ZIP}"
1036                                 DEPENDS ${LIBDIR}/release/${PYTHON_ZIP})
1037
1038                         # copy extracted python files
1039                         install_dir(
1040                                 ${CMAKE_CURRENT_BINARY_DIR}/python
1041                                 \${PLAYER_TARGETDIR_VER}
1042                         )
1043                 endif()
1044
1045         endif()
1046
1047 endif()
1048
1049 # -----------------------------------------------------------------------------
1050 # Generic Install, for all targets
1051
1052 if(DEFINED BLENDER_TEXT_FILES_DESTINATION)
1053
1054         install(
1055                 CODE
1056                 "
1057                 file(READ \"${CMAKE_SOURCE_DIR}/release/text/readme.html\" DATA_SRC)
1058                 string(REGEX REPLACE \"BLENDER_VERSION\" \"${BLENDER_VERSION}\" DATA_DST \"\${DATA_SRC}\")
1059                 file(WRITE \"${CMAKE_BINARY_DIR}/release/text/readme.html\" \"\${DATA_DST}\")
1060                 unset(DATA_SRC)
1061                 unset(DATA_DST)
1062                 "
1063         )
1064         list(APPEND BLENDER_TEXT_FILES
1065                 ${CMAKE_BINARY_DIR}/release/text/readme.html
1066         )
1067
1068         install(
1069                 FILES ${BLENDER_TEXT_FILES}
1070                 DESTINATION "${BLENDER_TEXT_FILES_DESTINATION}"
1071         )
1072 endif()
1073
1074 # install more files specified elsewhere
1075 delayed_do_install(${TARGETDIR_VER})
1076
1077 unset(BLENDER_TEXT_FILES)
1078 unset(BLENDER_TEXT_FILES_DESTINATION)
1079
1080
1081 # -----------------------------------------------------------------------------
1082 # Setup link libs
1083
1084 add_dependencies(blender makesdna)
1085
1086 setup_blender_sorted_libs()
1087 target_link_libraries(blender ${BLENDER_SORTED_LIBS})
1088
1089 setup_liblinks(blender)
1090
1091 # -----------------------------------------------------------------------------
1092 # Setup launcher
1093
1094 if(WIN32 AND NOT WITH_PYTHON_MODULE)
1095         set(LAUNCHER_SRC
1096                 creator_launch_win.c
1097                 ../icons/winblender.rc
1098         )
1099         add_executable(blender-launcher ${LAUNCHER_SRC})
1100         target_link_libraries(blender-launcher bf_intern_utfconv ${PLATFORM_LINKLIBS})
1101
1102         set_target_properties(blender PROPERTIES OUTPUT_NAME blender-app)
1103         set_target_properties(blender-launcher PROPERTIES OUTPUT_NAME blender)
1104
1105         install(TARGETS blender blender-launcher
1106                         COMPONENT Blender
1107                         DESTINATION ".")
1108
1109         if(MSVC12_REDIST_DIR)
1110                 if(CMAKE_CL_64)
1111                         set(_WIN_PLATFORM x64)
1112                 else()
1113                         set(_WIN_PLATFORM x86)
1114                 endif()
1115                 install(
1116                         FILES ${MSVC12_REDIST_DIR}/${_WIN_PLATFORM}/Microsoft.VC120.CRT/msvcp120.dll
1117                                   ${MSVC12_REDIST_DIR}/${_WIN_PLATFORM}/Microsoft.VC120.CRT/msvcr120.dll
1118                 DESTINATION ".")
1119                 if(WITH_OPENMP)
1120                         install(
1121                                 FILES ${MSVC12_REDIST_DIR}/${_WIN_PLATFORM}/Microsoft.VC120.OpenMP/vcomp120.dll
1122                                 DESTINATION ".")
1123                 endif()
1124         endif()
1125 endif()