File: CMakeInstallation.cmake

package info (click to toggle)
gftl-shared 1.0.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 548 kB
  • sloc: f90: 1,686; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 946 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
#-----------------------------------------------------------------------------
# Add Target(s) to CMake Install for import into other projects
#-----------------------------------------------------------------------------

if (NOT gFTL_EXTERNALLY_CONFIGURED)

  if (gFTL_EXPORTED_TARGETS)
    install (
      EXPORT ${gFTL-shared_EXPORTED_TARGETS}
      DESTINATION ${gFTL_INSTALL_CMAKE_DIR}/hdf5 # why here?
      FILE ${gFTL-shared_PACKAGE}-targets.cmake
      NAMESPACE ${gFTL-shared_PACKAGE}
      COMPONENT configinstall
      )
  endif ()

  #-----------------------------------------------------------------------------
  # Export all exported targets to the build tree for use by parent project
  #-----------------------------------------------------------------------------
  export (
    TARGETS ${gFTL-shared_LIBRARIES_TO_EXPORT}
    FILE ${gFTL-shared_PACKAGE}-targets.cmake
    NAMESPACE ${gFTL-shared_PACKAGE}::
    )

endif ()