summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2017-02-20 20:23:55 +0100
committerChristian Beier <dontmind@freeshell.org>2017-02-20 20:23:55 +0100
commit3a9e3601be20577fe5f88a44b8f54f3e9209208f (patch)
treece7e5c257d56cee5a9d995ac565db642a2be6c9d
parentd3e70a91bf54d6334bf1eae0117bce45a8193c1c (diff)
downloadlibtdevnc-3a9e3601.tar.gz
libtdevnc-3a9e3601.zip
CMake: make shared-lib build configurable and choose sensible platform defaults
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f0906d..787e056 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,6 +29,7 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/libvncserver ${CMAKE_CURRENT_SOURCE_DIR}/common)
# all the build configuration switches
+option(BUILD_SHARED_LIBS "Build shared libraries" ${UNIX})
option(WITH_ZLIB "Search for the zlib compression library to support additional encodings" ON)
option(WITH_JPEG "Search for the libjpeg compression library to support additional encodings" ON)
option(WITH_PNG "Search for the PNG compression library to support additional encodings" ON)
@@ -365,8 +366,8 @@ if(LIBVNCSERVER_WITH_WEBSOCKETS)
endif(LIBVNCSERVER_WITH_WEBSOCKETS)
-add_library(vncclient SHARED ${LIBVNCCLIENT_SOURCES})
-add_library(vncserver SHARED ${LIBVNCSERVER_SOURCES})
+add_library(vncclient ${LIBVNCCLIENT_SOURCES})
+add_library(vncserver ${LIBVNCSERVER_SOURCES})
if(WIN32)
set(ADDITIONAL_LIBS ${ADDITIONAL_LIBS} ws2_32)
endif(WIN32)