diff --git a/CMakeLists.txt b/CMakeLists.txt index bd7b4ab6e..a745fabd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -448,8 +448,8 @@ feature_summary(FILENAME "${CMAKE_CURRENT_BINARY_DIR}/packages.log" WHAT PACKAGE include(MapnikExport) include(MapnikExportPkgConfig) -install(DIRECTORY include/ DESTINATION "${MAPNIK_INCLUDE_DIR}") -install(DIRECTORY deps/agg/include/ DESTINATION "${MAPNIK_INCLUDE_DIR}") +install(DIRECTORY include/mapnik/ DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik") +install(DIRECTORY deps/agg/include/ DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik/agg") install(DIRECTORY deps/mapnik DESTINATION "${MAPNIK_INCLUDE_DIR}") file(GLOB TTF_FONT_FILES "fonts/*/*/*.ttf") install(FILES ${TTF_FONT_FILES} DESTINATION "${FONTS_INSTALL_DIR}") diff --git a/cmake/MapnikExportPkgConfig.cmake b/cmake/MapnikExportPkgConfig.cmake index e459f80ef..e8b69065b 100644 --- a/cmake/MapnikExportPkgConfig.cmake +++ b/cmake/MapnikExportPkgConfig.cmake @@ -9,7 +9,7 @@ Name: @_lib_name@ Description: @_description@ Version: @MAPNIK_VERSION@ Libs: -L"${libdir}" -l$$_POSTFIX> -Cflags: -I"${includedir}" ]] +Cflags: -I"${includedir}" -I"${includedir}/mapnik" ]] _contents @ONLY) file(GENERATE @@ -73,7 +73,7 @@ Description: @_description@ Version: @MAPNIK_VERSION@ Requires: @m_requires@ Libs: -L"${libdir}" -l$$_POSTFIX> -Cflags: -I"${includedir}" @m_str_compile_defs@]] +Cflags: -I"${includedir}" -I"${includedir}/mapnik" -I"${includedir}/mapnik/agg" @m_str_compile_defs@]] _contents @ONLY) file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_lib_name}-$.pc