annotate Resources/Samples/OrthancCppClient/Vtk/CMakeLists.txt @ 509:e7841864c97c

StableResourcesMonitor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Aug 2013 14:23:54 +0200
parents 4f5b4b0fa626
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 project(OrthancCppClientTest)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 set(STATIC_BUILD OFF)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../..)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 include(../OrthancCppClient.cmake)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 find_package(VTK REQUIRED)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 include(${VTK_USE_FILE})
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 add_executable(Test
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 main.cpp
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 ${ORTHANC_CPP_CLIENT_SOURCES}
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 )
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 if(VTK_LIBRARIES)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 target_link_libraries(Test ${VTK_LIBRARIES})
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 else()
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 target_link_libraries(Test vtkHybrid vtkVolumeRendering)
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 endif()
4f5b4b0fa626 VTK sample
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23