source: tol/CMakeLists.txt @ 3d6c984

1941-docker-image-to-testdevel
Last change on this file since 3d6c984 was 3d6c984, checked in by Jorge Pérez <josp.jorge@…>, 11 years ago

refs #1827, CMakeLists.txt para el proyecto de instalación.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6733 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.5 KB
Line 
1cmake_minimum_required( VERSION 2.8 )
2project( TOL-Installer )
3
4if( 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." )
6endif(  NOT TOL_RUNTIME_DIR )
7
8if( 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 )
16endif( WIN32 )
17
18set(CPACK_PACKAGE_NAME "TOL")
19set(CPACK_PACKAGE_VENDOR "www.tol-project.org")
20set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Time Oriented Language")
21set(CPACK_PACKAGE_VERSION "3.2.0")
22set(CPACK_PACKAGE_VERSION_MAJOR "3")
23set(CPACK_PACKAGE_VERSION_MINOR "2")
24set(CPACK_PACKAGE_VERSION_PATCH "0")
25set(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
29set (CPACK_NSIS_EXTRA_INSTALL_COMMANDS "Push \\\"TOLGNU_ROOT\\\"
30   Push \\\"A\\\"
31   Push \\\"HKCU\\\"
32   Push \\\"$INSTDIR\\\"
33   Call EnvVarUpdate
34   Pop  \\\$0" )
35
36set (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
43include(CPack)
Note: See TracBrowser for help on using the repository browser.