-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
30 lines (20 loc) · 1022 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
# ------------------------------------------------------------------------------
# CMake file for topoms (shared library)
# ------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.9)
# ------------------------------------------------------------------------------
# TopoMS source
include_directories(${PATH_MSC}/include ${PATH_TOPOMS}/include)
file(GLOB HDRS_MSC ${PATH_MSC}/include/*.h)
file(GLOB SRCS_MSC ${PATH_MSC}/src/*.cpp)
file(GLOB HDRS_TOPOMS ${PATH_TOPOMS}/include/*.h)
file(GLOB SRCS_TOPOMS ${PATH_TOPOMS}/src/*.cpp)
# ------------------------------------------------------------------------------
# create and install target
add_library(${TRG_LIB} STATIC
${HDRS_MSC} ${HDRS_TOPOMS} ${SRCS_MSC} ${SRCS_TOPOMS})
if(VTK_FOUND)
target_link_libraries(${TRG_LIB} LINK_PUBLIC ${VTK_LIBRARIES})
endif(VTK_FOUND)
install(TARGETS ${TRG_LIB} DESTINATION lib )
# ------------------------------------------------------------------------------