add debug postfix to wkt, json and mapnik.
Mapnik can be installed with multi configuration enviroment
This commit is contained in:
parent
9998ca7dd9
commit
81397f84bc
4 changed files with 16 additions and 4 deletions
|
@ -83,6 +83,10 @@ message(STATUS "Using c++ extensions: ${CXX_EXTENSIONS}")
|
|||
# https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD_REQUIRED.html#prop_tgt:CXX_STANDARD_REQUIRED
|
||||
set(CXX_STANDARD_REQUIRED ON) # require the specified CMAKE_CXX_STANDARD
|
||||
|
||||
# add debug postfix to the libraries
|
||||
set(MAPNIK_DEBUG_POSTFIX "d" CACHE STRING "sets the debug library postfix on mapnik, wkt and json")
|
||||
message(STATUS "added postfix for debug libraries: ${MAPNIK_DEBUG_POSTFIX}")
|
||||
|
||||
if(WIN32)
|
||||
set(DEFAULT_BIN_DIR bin)
|
||||
set(DEFAULT_LIB_DIR lib)
|
||||
|
|
|
@ -295,6 +295,8 @@ target_link_libraries(mapnik PRIVATE
|
|||
mapnik::agg
|
||||
)
|
||||
|
||||
set_target_properties(mapnik PROPERTIES DEBUG_POSTFIX ${MAPNIK_DEBUG_POSTFIX})
|
||||
|
||||
install(TARGETS mapnik
|
||||
EXPORT MapnikTargets
|
||||
LIBRARY DESTINATION ${MAPNIK_LIB_DIR}
|
||||
|
|
|
@ -15,8 +15,6 @@ add_library(json STATIC
|
|||
)
|
||||
add_library(mapnik::json ALIAS json)
|
||||
|
||||
set_property(TARGET json PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(json PRIVATE
|
||||
${JPEG_INCLUDE_DIR}
|
||||
${LIBXML2_INCLUDE_DIR}
|
||||
|
@ -26,6 +24,11 @@ target_include_directories(json PRIVATE
|
|||
)
|
||||
target_link_libraries(json PRIVATE mapnik::core ${ICUU_LIB})
|
||||
|
||||
set_target_properties(json PROPERTIES
|
||||
DEBUG_POSTFIX ${MAPNIK_DEBUG_POSTFIX}
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
|
||||
install(TARGETS json
|
||||
EXPORT MapnikTargets
|
||||
LIBRARY DESTINATION ${MAPNIK_LIB_DIR}
|
||||
|
|
|
@ -6,8 +6,6 @@ add_library(wkt STATIC
|
|||
)
|
||||
add_library(mapnik::wkt ALIAS wkt)
|
||||
|
||||
set_property(TARGET wkt PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
target_include_directories(wkt PRIVATE
|
||||
${MAPNIK_INCLUDE_PATH}
|
||||
${JPEG_INCLUDE_DIR}
|
||||
|
@ -18,6 +16,11 @@ target_include_directories(wkt PRIVATE
|
|||
)
|
||||
target_link_libraries(wkt PRIVATE mapnik::core)
|
||||
|
||||
set_target_properties(wkt PROPERTIES
|
||||
DEBUG_POSTFIX ${MAPNIK_DEBUG_POSTFIX}
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
|
||||
install(TARGETS wkt
|
||||
EXPORT MapnikTargets
|
||||
LIBRARY DESTINATION ${MAPNIK_LIB_DIR}
|
||||
|
|
Loading…
Reference in a new issue