forked from Kitware/vibrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (29 loc) · 1.05 KB
/
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
find_package(GeographicLib REQUIRED)
include_directories(${GeographicLib_INCLUDE_DIR})
find_package(VXL REQUIRED)
include(${VXL_CMAKE_DIR}/UseVXL.cmake)
include_directories(${VXL_VCL_INCLUDE_DIR})
add_library( vidtk_geographic SHARED
common.h
geo_coords.h geo_coords.cxx
)
target_link_libraries(vidtk_geographic vcl ${GeographicLib_LIBRARY})
install(TARGETS vidtk_geographic EXPORT vidtk
RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib
)
install( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include
FILES_MATCHING PATTERN "*.h"
)
export( TARGETS vidtk_geographic APPEND FILE "${VIDTK_EXPORT_FILE}")
if( VIDTK_ACTIVITY_SDK_INSTALL )
install( TARGETS vidtk_geographic
EXPORT activity-sdk-targets DESTINATION activity_sdk/lib )
endif()
if( VIDTK_EVENT_SDK_INSTALL)
install( TARGETS vidtk_geographic
EXPORT event-sdk-targets DESTINATION event_sdk/lib )
endif()
if( VIDTK_COMMON_SDK_INSTALL )
install( TARGETS vidtk_geographic
EXPORT common-sdk-targets DESTINATION common_sdk/lib )
endif( VIDTK_COMMON_SDK_INSTALL )