Mercurial > hg > orthanc
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 |
rev | line source |
---|---|
481 | 1 cmake_minimum_required(VERSION 2.8) |
2 | |
3 project(OrthancCppClientTest) | |
4 | |
5 set(STATIC_BUILD OFF) | |
6 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../..) | |
7 | |
8 include(../OrthancCppClient.cmake) | |
9 | |
10 find_package(VTK REQUIRED) | |
11 include(${VTK_USE_FILE}) | |
12 | |
13 add_executable(Test | |
14 main.cpp | |
15 ${ORTHANC_CPP_CLIENT_SOURCES} | |
16 ) | |
17 | |
18 if(VTK_LIBRARIES) | |
19 target_link_libraries(Test ${VTK_LIBRARIES}) | |
20 else() | |
21 target_link_libraries(Test vtkHybrid vtkVolumeRendering) | |
22 endif() | |
23 |