1941-docker-image-to-testdevel
| Line | |
|---|
| 1 | cmake_minimum_required( VERSION 2.8 ) |
|---|
| 2 | project( TOL-Installer ) |
|---|
| 3 | |
|---|
| 4 | if( NOT TOL_RUNTIME_DIR ) |
|---|
| 5 | messsage( FATAL_ERROR "You must specify the variable TOL_RUNTIME_DIR with the path to binary instalation of TOL. TOLTCL and TOLBASE should also be installed on that location." ) |
|---|
| 6 | endif( NOT TOL_RUNTIME_DIR ) |
|---|
| 7 | |
|---|
| 8 | if( WIN32 ) |
|---|
| 9 | file( TO_CMAKE_PATH "${TOL_RUNTIME_DIR}/bin/*.dll" dll_pattern ) |
|---|
| 10 | file( GLOB RT_DLL ${dll_pattern} ) |
|---|
| 11 | install( FILES ${RT_DLL} DESTINATION "bin" ) |
|---|
| 12 | file( TO_CMAKE_PATH "${TOL_RUNTIME_DIR}/bin/*.exe" exe_pattern ) |
|---|
| 13 | file( GLOB RT_EXE ${dll_pattern} ) |
|---|
| 14 | install( FILES ${RT_EXE} DESTINATION "bin" ) |
|---|
| 15 | install( DIRECTORY lib DESTINATION "." PATTERN "*.a" EXCLUDE ) |
|---|
| 16 | endif( WIN32 ) |
|---|
| 17 | |
|---|
| 18 | set(CPACK_PACKAGE_NAME "TOL") |
|---|
| 19 | set(CPACK_PACKAGE_VENDOR "www.tol-project.org") |
|---|
| 20 | set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Time Oriented Language") |
|---|
| 21 | set(CPACK_PACKAGE_VERSION "3.2.0") |
|---|
| 22 | set(CPACK_PACKAGE_VERSION_MAJOR "3") |
|---|
| 23 | set(CPACK_PACKAGE_VERSION_MINOR "2") |
|---|
| 24 | set(CPACK_PACKAGE_VERSION_PATCH "0") |
|---|
| 25 | set(CPACK_PACKAGE_INSTALL_DIRECTORY "tolbase") |
|---|
| 26 | |
|---|
| 27 | # http://www.mantidproject.org/NSIS_CPACK_Customisations |
|---|
| 28 | # http://nsis.sourceforge.net/Environmental_Variables:_append,_prepend,_and_remove_entries |
|---|
| 29 | set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS "Push \\\"TOLGNU_ROOT\\\" |
|---|
| 30 | Push \\\"A\\\" |
|---|
| 31 | Push \\\"HKCU\\\" |
|---|
| 32 | Push \\\"$INSTDIR\\\" |
|---|
| 33 | Call EnvVarUpdate |
|---|
| 34 | Pop \\\$0" ) |
|---|
| 35 | |
|---|
| 36 | set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS "Push \\\"TOLGNU_ROOT\\\" |
|---|
| 37 | Push \\\"R\\\" |
|---|
| 38 | Push \\\"HKCU\\\" |
|---|
| 39 | Push \\\"$INSTDIR\\\" |
|---|
| 40 | Call un.EnvVarUpdate |
|---|
| 41 | Pop \\\$0" ) |
|---|
| 42 | |
|---|
| 43 | include(CPack) |
|---|
Note: See
TracBrowser
for help on using the repository browser.