Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / platform / windows / CMakeLists.txt
blob50e3c0bc25bc1efc51b6fa882f6b33a426c63a20
1 install(FILES ${CMAKE_SOURCE_DIR}/COPYING
2     DESTINATION SuperCollider
3     RENAME LICENSE.txt
5 install(FILES ${CMAKE_SOURCE_DIR}/README_WINDOWS.txt
6     DESTINATION SuperCollider
7     RENAME README.txt
10 # This target invokes fixup_bundle to copy dependencies
11 # into the installation directory:
12 add_custom_target( bundle
13     COMMAND cmake
14         "-DSC_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
15         "-DSC_WIN_DEP_DIRS=${SC_WIN_DEP_DIRS}"
16         -P "${CMAKE_CURRENT_SOURCE_DIR}/bundle.cmake"
17     COMMENT "Bundling the dependencies:"
18     VERBATIM
21 # This target invokes a custom NSIS script to create
22 # the installer, because CPack would not create a suitable
23 # installer for sced:
24 add_custom_target( package
25     COMMAND cmake
26         "-DSC_VERSION=${PROJECT_VERSION}"
27         "-DSC_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
28         "-DSC_ED=${SC_ED}"
29         "-DNSIS_SCRIPT=${CMAKE_CURRENT_SOURCE_DIR}/supercollider.nsi"
30         -P "${CMAKE_CURRENT_SOURCE_DIR}/package.cmake"
31     COMMENT "Building the installer:"
32     VERBATIM