view 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
line wrap: on
line source

cmake_minimum_required(VERSION 2.8)

project(OrthancCppClientTest)

set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../..)
include(../../OrthancCppClient.cmake)

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

add_executable(Test
  main.cpp
  )

if(VTK_LIBRARIES)
  target_link_libraries(Test ${VTK_LIBRARIES})
else()
  target_link_libraries(Test vtkHybrid vtkVolumeRendering)
endif()