Using CMake to locate include directory and libaries

This commit is contained in:
Thomas Fischer 2017-04-05 13:51:42 +02:00
parent aefa356291
commit e6a0026e51
1 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
set(OSMPBF_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/include/osmpbf")
set(OSMPBF_LIBRARIES "@CMAKE_INSTALL_PREFIX@/lib/libosmpbf.a")
find_path(OSMPBF_INCLUDE_DIRS NAMES osmpbf/fileformat.pb.h osmpbf/osmformat.pb.h PATHS "@CMAKE_INSTALL_PREFIX@/include")
find_library(OSMPBF_LIBRARIES NAMES osmpbf PATHS "@CMAKE_INSTALL_PREFIX@/lib")
set(OSMPBF_VERSION "@OSMPBF_VERSION@")