File: CMakeLists.txt

package info (click to toggle)
elastix 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,480 kB
  • sloc: cpp: 68,403; lisp: 4,118; python: 1,013; xml: 182; sh: 177; makefile: 33
file content (30 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download
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

if(ELASTIX_USE_OPENCL)
  ADD_ELXCOMPONENT( OpenCLMovingGenericPyramid
    elxOpenCLMovingGenericPyramid.h
    elxOpenCLMovingGenericPyramid.hxx
    elxOpenCLMovingGenericPyramid.cxx)

  include_directories(../MovingGenericPyramid)

  if(USE_OpenCLMovingdGenericPyramid)
    target_link_libraries(OpenCLMovingGenericPyramid elxOpenCL)
  endif()
else()
  # If the user set USE_OpenCLFixedGenericPyramid ON, but ELASTIX_USE_OPENCL was OFF,
  # then issue a warning.
  if(USE_OpenCLMovingGenericPyramid)
    message(WARNING "You selected to compile OpenCLMovingGenericPyramid, "
      "but ELASTIX_USE_OPENCL is OFF.\n"
      "Set both options to ON to be able to build this component.")
  endif()

  # If ELASTIX_USE_OPENCL is not selected, then the elxOpenCL
  # library is not created, and we cannot compile this component.
  set(USE_OpenCLMovingGenericPyramid OFF CACHE BOOL "Compile this component" FORCE)
  mark_as_advanced(USE_OpenCLMovingGenericPyramid)

  # This is required to get the OpenCLMovingGenericPyramid out of the AllComponentLibs
  # list defined in Components/CMakeLists.txt.
  REMOVE_ELXCOMPONENT( OpenCLMovingGenericPyramid)
endif()