File: CMakeLists.txt

package info (click to toggle)
vtk7 7.1.1%2Bdfsg2-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 127,396 kB
  • sloc: cpp: 1,539,584; ansic: 124,382; python: 78,038; tcl: 47,013; xml: 8,142; yacc: 5,040; java: 4,439; perl: 3,132; lex: 1,926; sh: 1,500; makefile: 126; objc: 83
file content (44 lines) | stat: -rw-r--r-- 1,263 bytes parent folder | download | duplicates (5)
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
34
35
36
37
38
39
40
41
42
43
44
# Load up the CMake variables we need.
vtk_module_impl()
vtk_module_config(${vtk-module} ${${vtk-module}_DEPENDS})

# Placeholders
set(extra_deps)
set(compile_defs)

# Add our test executables.
add_executable(TimingTests MACOSX_BUNDLE
  TimingTests.cxx
  vtkRenderTimings.cxx
  )
target_link_libraries(TimingTests ${${vtk-module}_LIBRARIES})
set_property(TARGET TimingTests APPEND PROPERTY
  COMPILE_DEFINITIONS "${${vtk-module}_DEFINITIONS}")

# Chemistry target
if(TARGET vtkDomainsChemistry)
  if(VTK_RENDERING_BACKEND STREQUAL "OpenGL2")
    list(APPEND extra_deps vtkDomainsChemistryOpenGL2)
  else()
    list(APPEND extra_deps vtkDomainsChemistry)
  endif()
  list(APPEND compile_defs HAVE_CHEMISTRY)
  include_directories(${VTK_SOURCE_DIR}/Domains/Chemistry
    ${VTK_BINARY_DIR}/Domains/Chemistry)
endif()

if(compile_defs)
  set_source_files_properties(TimingTests.cxx APPEND PROPERTIES
    COMPILE_DEFINITIONS "${compile_defs}")
endif()

if (extra_deps)
  target_link_libraries(TimingTests ${extra_deps})
endif()

add_executable(GLBenchmarking MACOSX_BUNDLE
  GLBenchmarking.cxx
  )
target_link_libraries(GLBenchmarking ${${vtk-module}_LIBRARIES})
set_property(TARGET GLBenchmarking APPEND PROPERTY
  COMPILE_DEFINITIONS "${${vtk-module}_DEFINITIONS}")