forked from MapIV/llh_converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (45 loc) · 1.33 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 2.8.3)
project(llh_converter)
find_package(catkin REQUIRED COMPONENTS)
find_package(PkgConfig)
find_path(GeographicLib INCLUDE_DIR GeographicLib/config.h
PATH_SUFFIXES GeographicLib
)
set(GeographicLib_LIBRARIES
NAMES Geographic
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES llh_converter
)
include_directories(
include
${GeographicLib_INCLUDE_DIRS}
)
link_directories(
/usr/local/lib
)
add_library(llh_converter SHARED
src/height_converter.cpp
src/gsigeo.cpp
src/llh_converter.cpp
src/meridian_convergence_angle_correction.cpp
)
target_link_libraries(llh_converter PUBLIC ${catkin_LIBRARIES} Geographic)
add_executable(llh_test test/height_converter_test.cpp)
target_link_libraries(llh_test ${catkin_LIBRARIES} llh_converter)
add_dependencies(llh_test ${catkin_EXPORTED_TARGETS})
add_executable(mcac_test test/meridian_convergence_angle_correction_test.cpp)
target_link_libraries(mcac_test ${catkin_LIBRARIES} llh_converter)
add_dependencies(mcac_test ${catkin_EXPORTED_TARGETS})
install(DIRECTORY include/llh_converter/
DESTINATION include/llh_converter
FILES_MATCHING PATTERN "*.hpp"
)
install(
TARGETS
llh_converter
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)