-
Hi, I have successfully built Valhalla from source by using Project layout:
CMakeLists.txt: cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
# set the project name and version
project(BWRP LANGUAGES CXX C)
set(PROJECT_BINARY_DIR "${PROJECT_SOURCE_DIR}/build")
# specify the C++ standard
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ language version to use (default is 17)")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FindPkgConfig)
add_subdirectory(valhalla)
pkg_check_modules(Valhalla REQUIRED libvalhalla)
add_executable(Run main.cc)
target_link_libraries(Run PUBLIC "libvalhalla") vcpkg.json: {
"dependencies": [
"libspatialite"
]
} What I got after running
I have download Any help is appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I wouldn’t recommend including libvalhalla like that. Install it properly to your system first and just remove that add_subdirectory line. That’s the (more) painless route. |
Beta Was this translation helpful? Give feedback.
I wouldn’t recommend including libvalhalla like that. Install it properly to your system first and just remove that add_subdirectory line. That’s the (more) painless route.