This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (36 loc) · 1.82 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
#----------------------------------------------------------------------
#
# Single example osmium-contrib CMakeLists.txt
# https://github.com/osmcode/libosmium/wiki/Using-Libosmium-in-your-own-projects
#
#----------------------------------------------------------------------
project(osmium-history-parser)
cmake_minimum_required(VERSION 2.8.5)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
include(FindOsmium)
#find_package(Osmium REQUIRED)
find_package(Osmium REQUIRED COMPONENTS pbf xml io)
#if (NOT OSMIUM_FOUND)
# message(FATAL_ERROR "Osmium library not found!")
#else()
# message("Found Osmium library in " ${OSMIUM_INCLUDE_DIRS})
#endif()
message("Found Osmium library in " ${OSMIUM_INCLUDE_DIR})
include_directories(${OSMIUM_INCLUDE_DIRS})
include(common)
#----------------------------------------------------------------------
add_executable(user-edit-history user_edit_history.cpp)
target_link_libraries(user-edit-history ${Boost_LIBRARIES} ${OSMIUM_LIBRARIES})
add_executable(user-tag-edit-history user_tag_edit_history.cpp)
target_link_libraries(user-tag-edit-history ${Boost_LIBRARIES} ${OSMIUM_LIBRARIES})
add_executable(user-deletion-history user_deletion_history.cpp)
target_link_libraries(user-deletion-history ${Boost_LIBRARIES} ${OSMIUM_LIBRARIES})
add_executable(way-deletion-history way_deletion_history.cpp)
target_link_libraries(way-deletion-history ${Boost_LIBRARIES} ${OSMIUM_LIBRARIES})
add_executable(way-node-history way_node_history.cpp)
target_link_libraries(way-node-history ${Boost_LIBRARIES} ${OSMIUM_LIBRARIES})
add_executable(user-uid-name-map user_uid_name_map.cpp)
target_link_libraries(user-uid-name-map ${Boost_LIBRARIES} ${OSMIUM_LIBRARIES})
#----------------------------------------------------------------------