forked from ngageoint/csm
-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
35 lines (30 loc) · 1.12 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
35
cmake_minimum_required(VERSION 3.10)
project(csmapi VERSION 3.0.3 DESCRIPTION "Community Sensor Model API")
add_library(csmapi SHARED
BundleGM.cpp
CorrelationModel.cpp
csmPointCloud.cpp
Ellipsoid.cpp
FourParameterCorrelationModel.cpp
GeometricModel.cpp
Isd.cpp
LinearDecayCorrelationModel.cpp
ModelIdentifier.cpp
Plugin.cpp
PointCloudGM.cpp
PointCloudIsd.cpp
RasterGM.cpp
SettableEllipsoid.cpp
Version.cpp
)
file(GLOB HEADER_FILES ${PROJECT_SOURCE_DIR}/*.h)
set_target_properties(csmapi PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION 3
PUBLIC_HEADER "${HEADER_FILES}"
)
target_include_directories(csmapi PUBLIC ${PROJECT_SOURCE_DIR})
set(WINDOWS_EXPORT_ALL_SYMBOLS ON)
message(STATUS "CMAKE INSTALL LIBDIR: ${CMAKE_INSTALL_PREFIX}")
install(TARGETS csmapi LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
install(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/csm)