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 (28 lines) | stat: -rw-r--r-- 722 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
add_executable(ElastixLibGTest
  elxCoreMainGTestUtilities.h
  elxCoreMainGTestUtilities.cxx
  ElastixLibGTest.cxx
  itkElastixRegistrationMethodGTest.cxx
  itkTransformixFilterGTest.cxx
  ParameterObjectGTest.cxx
)

target_compile_definitions(ElastixLibGTest PRIVATE
  _USE_MATH_DEFINES # For M_PI.
)

target_link_libraries(ElastixLibGTest
  GTest::GTest
  GTest::Main
  elastix_lib
  transformix_lib
  ${ITK_LIBRARIES}
)

target_compile_definitions(ElastixLibGTest PRIVATE ELX_CMAKE_SOURCE_DIR="${CMAKE_SOURCE_DIR}" ELX_CMAKE_CURRENT_BINARY_DIR="${CMAKE_CURRENT_BINARY_DIR}")

if(ELASTIX_USE_OPENCL)
  target_link_libraries(ElastixLibGTest elxOpenCL)
endif()

add_test(NAME ElastixLibGTest_test COMMAND ElastixLibGTest)