better project structure
This commit is contained in:
parent
274b3d03b4
commit
98489ed45d
14 changed files with 8051 additions and 36 deletions
20
src/CMakeLists.txt
Normal file
20
src/CMakeLists.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
add_executable(mapviewer
|
||||
main.cpp
|
||||
multipolygon.cpp
|
||||
)
|
||||
|
||||
target_include_directories(mapviewer PRIVATE
|
||||
osmp
|
||||
triangle
|
||||
glfw
|
||||
glad
|
||||
)
|
||||
|
||||
add_custom_command(TARGET mapviewer POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/res/map.osm $<TARGET_FILE_DIR:mapviewer>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/res/bigmap.osm $<TARGET_FILE_DIR:mapviewer>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/res/leipzig.osm $<TARGET_FILE_DIR:mapviewer>
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/res/jp.osm $<TARGET_FILE_DIR:mapviewer>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue