1 |
francois |
1061 |
find_package(VTK REQUIRED NO_MODULE) |
2 |
|
|
if(NOT VTK_DIR) |
3 |
|
|
message("VTK Not found") |
4 |
|
|
else(NOT VTK_DIR) |
5 |
francois |
1156 |
file(GLOB SRC src/*.cc) |
6 |
francois |
1061 |
set(VTKDISPLAY_SOURCE ${SRC}) |
7 |
|
|
include_directories(src$ ${VTK_INCLUDE_DIRS}) |
8 |
|
|
add_library(vtkdisplay SHARED ${VTKDISPLAY_SOURCE} ) |
9 |
|
|
target_link_libraries (vtkdisplay ${VTK_LIBRARIES}) |
10 |
|
|
endif(NOT VTK_DIR) |
11 |
|
|
|
12 |
|
|
|
13 |
|
|
#cmake_minimum_required(VERSION 2.6 FATAL_ERROR) |
14 |
|
|
#find_package(VTK REQUIRED NO_MODULE) |
15 |
|
|
#if(NOT VTK_DIR) |
16 |
|
|
#message("VTK Not found") |
17 |
|
|
#else(NOT VTK_DIR) |
18 |
|
|
#include(${VTK_USE_FILE}) |
19 |
|
|
|
20 |
|
|
#SET(HAS_VTK_INTERFACE "TRUE" CACHE INTERNAL "") |
21 |
|
|
#set(NUTIL_EXTERNAL_INCLUDES ${VTK_INCLUDE_DIRS} CACHE INTERNAL "NUtil External include directories" FORCE) |
22 |
|
|
#set(NUTIL_EXTERNAL_LIBRARY_DIRS ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES} ${VTK_LIBRARY_DIRS} CACHE INTERNAL "NUtil External library dirs" #FORCE) |
23 |
|
|
#set(NUTIL_EXTERNAL_LIBRARIES ${VTK_LIBRARIES} CACHE INTERNAL "NUtil External libraries dirs" FORCE) |
24 |
|
|
#include_directories(.) |
25 |
|
|
|
26 |
|
|
#add_library (vtkdisplay-dynamic SHARED vtkdisplay.cc keyboardCallback.cc mousewheelforwardCallback.cc mousewheelbackwardCallback.cc) |
27 |
|
|
#add_library (vtkdisplay-static STATIC EXCLUDE_FROM_ALL vtkdisplay.cc keyboardCallback.cc mousewheelforwardCallback.cc mousewheelbackwardCallback.cc) |
28 |
|
|
#SET_TARGET_PROPERTIES(vtkdisplay-static PROPERTIES OUTPUT_NAME "vtkdisplay") |
29 |
|
|
#SET_TARGET_PROPERTIES(vtkdisplay-dynamic PROPERTIES OUTPUT_NAME "vtkdisplay") |
30 |
|
|
#target_link_libraries (vtkdisplay-dynamic ${LIBS} nutil-dynamic ${VTK_LIBRARIES}) |
31 |
|
|
#target_link_libraries (vtkdisplay-static ${LIBS} nutil-static ${VTK_LIBRARIES}) |
32 |
|
|
|
33 |
|
|
#add_subdirectory(test) |
34 |
|
|
#endif(NOT VTK_DIR) |