diff options
author | Christian Beier <dontmind@freeshell.org> | 2017-02-20 20:23:55 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2017-02-20 20:23:55 +0100 |
commit | 3a9e3601be20577fe5f88a44b8f54f3e9209208f (patch) | |
tree | ce7e5c257d56cee5a9d995ac565db642a2be6c9d /CMakeLists.txt | |
parent | d3e70a91bf54d6334bf1eae0117bce45a8193c1c (diff) | |
download | libtdevnc-3a9e3601be20577fe5f88a44b8f54f3e9209208f.tar.gz libtdevnc-3a9e3601be20577fe5f88a44b8f54f3e9209208f.zip |
CMake: make shared-lib build configurable and choose sensible platform defaults
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
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) |