File: UseGDCM.cmake.in

package info (click to toggle)
gdcm 3.0.24-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,856 kB
  • sloc: cpp: 203,722; ansic: 76,471; xml: 48,131; python: 3,473; cs: 2,308; java: 1,629; lex: 1,290; sh: 334; php: 128; makefile: 97
file content (33 lines) | stat: -rw-r--r-- 866 bytes parent folder | download | duplicates (6)
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
33
#
# This module is provided as GDCM_USE_FILE by GDCMConfig.cmake.
# It can be INCLUDEd in a project to load the needed compiler and linker
# settings to use GDCM:
#   find_package(GDCM REQUIRED)
#   include(${GDCM_USE_FILE})

if(NOT GDCM_USE_FILE_INCLUDED)
  set(GDCM_USE_FILE_INCLUDED 1)

  # Add include directories needed to use GDCM.
  include_directories(${GDCM_INCLUDE_DIRS})

  # Add link directories needed to use GDCM.
  link_directories(${GDCM_LIBRARY_DIRS})

  # Add cmake module path.
  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${GDCM_CMAKE_DIR}")

  # Use VTK.
  if(GDCM_USE_VTK)
    if(NOT GDCM_SKIP_USE_VTK)
      set(VTK_DIR ${GDCM_VTK_DIR})
      find_package(VTK)
      if(VTK_FOUND)
        include(${VTK_USE_FILE})
      else()
        message("VTK not found in GDCM_VTK_DIR=\"${GDCM_VTK_DIR}\".")
      endif()
    endif()
  endif()

endif()