annotate OrthancCppClient/Package/Test/Vtk/CMakeLists.txt @ 512:1b8a1c43893e laaw

compilation of the dll 32/64
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Jul 2013 12:36:02 +0200
parents d87febb5f183
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
506
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 project(OrthancCppClientTest)
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4
512
1b8a1c43893e compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 510
diff changeset
5 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../..)
1b8a1c43893e compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 510
diff changeset
6 include(../../OrthancCppClient.cmake)
1b8a1c43893e compilation of the dll 32/64
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 510
diff changeset
7
506
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 find_package(VTK REQUIRED)
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 include(${VTK_USE_FILE})
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 add_executable(Test
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 main.cpp
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 )
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 if(VTK_LIBRARIES)
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 target_link_libraries(Test ${VTK_LIBRARIES})
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 else()
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 target_link_libraries(Test vtkHybrid vtkVolumeRendering)
6e4bd06c17c5 the wrapper is working
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 endif()