added option to build Arabica as a shared library

This commit is contained in:
Steffen Vogel 2017-10-23 10:37:26 +02:00
parent c5de6cacf8
commit aac23dcda8

View file

@ -9,6 +9,11 @@ project(arabica)
set(LIBNAME arabica) set(LIBNAME arabica)
#
# Build as shared library
#
option(BUILD_SHARED_LIBS "Build as shared libaries" OFF)
# #
# Enable/Disable example build # Enable/Disable example build
# #
@ -383,7 +388,7 @@ set(SOURCE_FILES
source_group("Source Files" FILES ${SOURCE_FILES}) source_group("Source Files" FILES ${SOURCE_FILES})
add_library (${LIBNAME} STATIC add_library (${LIBNAME}
${GENERATED_HEADER_FILES} ${GENERATED_HEADER_FILES}
${PUBLIC_HEADER_FILES} ${PUBLIC_HEADER_FILES}
${SOURCE_FILES} ${SOURCE_FILES}