Mercurial > hg > orthanc
annotate OrthancCppClient/Package/Test/Vtk/CMakeLists.txt @ 516:49a1228d6fe7 laaw
building the dll from the main CMakeLists
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jul 2013 16:12:29 +0200 |
parents | 1b8a1c43893e |
children |
rev | line source |
---|---|
506 | 1 cmake_minimum_required(VERSION 2.8) |
2 | |
3 project(OrthancCppClientTest) | |
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 | 8 find_package(VTK REQUIRED) |
9 include(${VTK_USE_FILE}) | |
10 | |
11 add_executable(Test | |
12 main.cpp | |
13 ) | |
14 | |
15 if(VTK_LIBRARIES) | |
16 target_link_libraries(Test ${VTK_LIBRARIES}) | |
17 else() | |
18 target_link_libraries(Test vtkHybrid vtkVolumeRendering) | |
19 endif() |