1941-docker-image-to-testdevel
| Line | |
|---|
| 1 | # => http://www.cmake.org/Wiki/CMake:CPackPackageGenerators |
|---|
| 2 | |
|---|
| 3 | cmake_minimum_required(VERSION 3.0) |
|---|
| 4 | project(TOL-Installer) |
|---|
| 5 | |
|---|
| 6 | if(NOT TOL_RUNTIME_DIR) |
|---|
| 7 | message(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.") |
|---|
| 8 | endif(NOT TOL_RUNTIME_DIR) |
|---|
| 9 | |
|---|
| 10 | set(CPACK_PACKAGE_NAME "tol") |
|---|
| 11 | set(CPACK_PACKAGE_VERSION_MAJOR "3") |
|---|
| 12 | set(CPACK_PACKAGE_VERSION_MINOR "4") |
|---|
| 13 | set(CPACK_PACKAGE_VERSION_PATCH "0") |
|---|
| 14 | set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}") |
|---|
| 15 | set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Time Oriented Language") |
|---|
| 16 | set(CPACK_PACKAGE_VENDOR "Tol-Project") |
|---|
| 17 | set(CPACK_PACKAGE_CONTACT "Pedro Gea <pgea@bayesforecast.com>") |
|---|
| 18 | |
|---|
| 19 | if(WIN32) |
|---|
| 20 | add_subdirectory(windows) |
|---|
| 21 | else(WIN32) |
|---|
| 22 | add_subdirectory(linux) |
|---|
| 23 | #! Sacar el include del IF después de incluir los PARENT_SCOPE en Windows |
|---|
| 24 | #! y comprobar que todo funciona adecuadamente. |
|---|
| 25 | include(CPack) |
|---|
| 26 | endif(WIN32) |
|---|
Note: See
TracBrowser
for help on using the repository browser.