mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Make zint-static build optional
This commit is contained in:
parent
e2cd96924d
commit
9b771dba3a
@ -20,6 +20,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
|||||||
set(ZINT_DEBUG FALSE CACHE BOOL "Set debug compile flag")
|
set(ZINT_DEBUG FALSE CACHE BOOL "Set debug compile flag")
|
||||||
set(ZINT_SANITIZE FALSE CACHE BOOL "Set sanitize compile/link flags")
|
set(ZINT_SANITIZE FALSE CACHE BOOL "Set sanitize compile/link flags")
|
||||||
set(ZINT_TEST FALSE CACHE BOOL "Set test compile flag")
|
set(ZINT_TEST FALSE CACHE BOOL "Set test compile flag")
|
||||||
|
set(ZINT_STATIC FALSE CACHE BOOL "Build static library")
|
||||||
|
|
||||||
include (SetPaths.cmake)
|
include (SetPaths.cmake)
|
||||||
|
|
||||||
|
@ -18,7 +18,9 @@ else(PNG_FOUND)
|
|||||||
endif(PNG_FOUND)
|
endif(PNG_FOUND)
|
||||||
|
|
||||||
add_library(zint SHARED ${zint_SRCS})
|
add_library(zint SHARED ${zint_SRCS})
|
||||||
add_library(zint-static STATIC ${zint_SRCS})
|
if(ZINT_STATIC)
|
||||||
|
add_library(zint-static STATIC ${zint_SRCS})
|
||||||
|
endif(ZINT_STATIC)
|
||||||
|
|
||||||
set_target_properties(zint PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
|
set_target_properties(zint PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
|
||||||
VERSION ${ZINT_VERSION})
|
VERSION ${ZINT_VERSION})
|
||||||
|
Loading…
Reference in New Issue
Block a user