-
-
Notifications
You must be signed in to change notification settings - Fork 477
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
83 lines (76 loc) · 1.94 KB
/
CMakeLists.txt
File metadata and controls
83 lines (76 loc) · 1.94 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
add_library(osm2pgsql_lib STATIC)
# Set the minimum required C++ version for the library and hence for all
# binaries that use it.
target_compile_features(osm2pgsql_lib PUBLIC cxx_std_17)
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
"${CMAKE_CURRENT_SOURCE_DIR}/init.lua")
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/init.lua" LUA_INIT_CODE)
configure_file(lua-init.cpp.in lua-init.cpp @ONLY)
target_sources(osm2pgsql_lib PRIVATE
command-line-app.cpp
command-line-parser.cpp
db-copy.cpp
debug-output.cpp
expire-output.cpp
expire-tiles.cpp
flex-index.cpp
flex-lua-expire-output.cpp
flex-lua-geom.cpp
flex-lua-index.cpp
flex-lua-locator.cpp
flex-lua-table.cpp
flex-table-column.cpp
flex-table.cpp
flex-write.cpp
geom-area-assembler.cpp
geom-box.cpp
geom-from-osm.cpp
geom-functions.cpp
geom-pole-of-inaccessibility.cpp
geom.cpp
hex.cpp
idlist.cpp
input.cpp
locator.cpp
logging.cpp
lua-setup.cpp
lua-utils.cpp
middle-pgsql.cpp
middle-ram.cpp
middle.cpp
node-locations.cpp
node-persistent-cache.cpp
ordered-index.cpp
osmdata.cpp
output-flex.cpp
output-null.cpp
output-pgsql.cpp
output.cpp
params.cpp
pgsql-capabilities.cpp
pgsql-helper.cpp
pgsql.cpp
progress-display.cpp
properties.cpp
reprojection.cpp
table.cpp
taginfo.cpp
tagtransform-c.cpp
tagtransform-lua.cpp
tagtransform.cpp
template.cpp
thread-pool.cpp
tile.cpp
util.cpp
wildcmp.cpp
wkb.cpp
${CMAKE_CURRENT_BINARY_DIR}/lua-init.cpp
${PROJECT_BINARY_DIR}/src/version.cpp
)
if (HAVE_PROJ6)
target_sources(osm2pgsql_lib PRIVATE reprojection-generic-proj6.cpp)
else()
target_sources(osm2pgsql_lib PRIVATE reprojection-generic-none.cpp)
endif()
set_target_properties(osm2pgsql_lib PROPERTIES OUTPUT_NAME osm2pgsql)
target_link_libraries(osm2pgsql_lib ${LIBS})