File: UseElastix.cmake.in

package info (click to toggle)
elastix 4.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 55,608 kB
  • sloc: cpp: 58,067; lisp: 4,121; python: 777; sh: 227; xml: 182; makefile: 34
file content (26 lines) | stat: -rw-r--r-- 845 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
#
# To use elastix-code in your own program, add the following
# cmake code to your CMakeLists file:
#
# set( Elastix_DIR "path/to/elastix/binary/directory" )
# find_package( Elastix REQUIRED )
# include( ${ELASTIX_USE_FILE} )
# 

# Add include dirs
include_directories( ${ELASTIX_INCLUDE_DIRS} )

# Add library dirs
link_directories( ${ELASTIX_LIBRARY_DIRS} )

# If Elastix_FOUND is set, this file is included via find_package() which provides
# ELASTIX_CONFIG_TARGETS_FILE and elxLIBRARY_DEPENDS_FILE. Guarding the following
# include statements allow users to include this file directly for backwards 
# compatibility.
if( Elastix_FOUND )
  # This file was found by find_package
  include( ${ELASTIX_CONFIG_TARGETS_FILE} )
else()
  # Include linking dependency info for backwards compatibility
  include( ${elxLIBRARY_DEPENDS_FILE} )
endif()