MapViewer/lib/osmparser/CMakeLists.txt

26 lines
441 B
CMake
Raw Normal View History

2021-04-14 19:04:08 +00:00
cmake_minimum_required(VERSION 3.10)
find_package(tinyxml2 CONFIG REQUIRED)
file(GLOB_RECURSE CPP_FILES
"src/*.cpp"
)
file(GLOB_RECURSE HPP_FILES
"include/*.hpp"
)
get_target_property(TINYXML2_INCLUDE_DIR tinyxml2::tinyxml2 INTERFACE_INCLUDE_DIRECTORIES)
add_library(osmp STATIC
2021-04-16 13:16:00 +00:00
${CPP_FILES}
2021-04-14 19:04:08 +00:00
)
target_include_directories(osmp PUBLIC
include
${TINYXML2_INCLUDE_DIR}
)
target_link_libraries(osmp PRIVATE
tinyxml2::tinyxml2
)