File: UseElastix.cmake.in

package info (click to toggle)
elastix 5.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 45,584 kB
  • sloc: cpp: 85,621; lisp: 4,118; python: 1,045; sh: 200; xml: 182; makefile: 33
file content (26 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (4)
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()