-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (29 loc) · 868 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.3)
PROJECT("pv-datetime-filter")
message(STATUS ${ParaView_DIR})
message(STATUS ${CMAKE_PREFIX_PATH})
FIND_PACKAGE(ParaView REQUIRED)
message(STATUS "usefile = ${PARAVIEW_USE_FILE}")
INCLUDE(${PARAVIEW_USE_FILE})
INCLUDE_DIRECTORIES(
"${PROJECT_SOURCE_DIR}"
"${PROJECT_BINARY_DIR}"
)
find_package(Boost
COMPONENTS
date_time
REQUIRED)
include_directories(${BOOST_INCLUDE_PATH} ${Boost_INCLUDE_DIR}) #new and old format for incl dir path
SET(PLUGIN_NAME TimeAnnotate)
ADD_PARAVIEW_PLUGIN(
${PLUGIN_NAME}
"1.0"
SERVER_MANAGER_XML
vtkDateTimeAnnotation.xml
SERVER_MANAGER_SOURCES
vtkDateTimeAnnotation.cxx
# SERVER_SOURCES
# Extra-sources.cpp
)
TARGET_LINK_LIBRARIES( Boost::Boost) #other link here as required
install (TARGETS ${PLUGIN_NAME} DESTINATION "lib")