File: CMakeLists.txt

package info (click to toggle)
openstructure 2.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 205,228 kB
  • sloc: cpp: 188,129; python: 35,361; ansic: 34,298; fortran: 3,275; sh: 286; xml: 146; makefile: 29
file content (32 lines) | stat: -rw-r--r-- 1,304 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#-------------------------------------------------------------------------------
#  Author:  Andreas Schenk
#
#  This file contains the CPack configuration common to all platforms.
#
#-------------------------------------------------------------------------------

#only include deployment configureation for the main project and not for subprojects
if(${PROJECT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR})

  INCLUDE(InstallRequiredSystemLibraries)
  
  set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenStructure Framework")
  set(CPACK_PACKAGE_VENDOR "2008-2020 -- The OpenStructure Team")
  set(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.md")
  set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE.txt")
  set(CPACK_PACKAGE_VERSION_MAJOR ${OST_VERSION_MAJOR})
  set(CPACK_PACKAGE_VERSION_MINOR ${OST_VERSION_MINOR})
  set(CPACK_PACKAGE_VERSION_PATCH ${OST_VERSION_PATCH})
  
  # using include instead of add_subdirectory avoid creating a child scope
  if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    include(macos/CMakeLists.txt) 
  elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    include(linux/CMakeLists.txt) 
  elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
    include(win/CMakeLists.txt) 
  endif()

  INCLUDE(CPack) 

endif(${PROJECT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR})