summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2017-01-29 16:42:52 +0100
committerChristian Beier <dontmind@freeshell.org>2017-01-29 16:42:52 +0100
commit05c6c6deaca39c09a5af97d23ee5eed03e15b0d3 (patch)
tree01bb151a32f12d112173eb39596b7e11bfc86533
parent9ef3ed395fa1ef77140511a2fad3ecc7d0302e1d (diff)
downloadlibtdevnc-05c6c6deaca39c09a5af97d23ee5eed03e15b0d3.tar.gz
libtdevnc-05c6c6deaca39c09a5af97d23ee5eed03e15b0d3.zip
CMake: fix examples linking when building with MSVC
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2790e96..4de7b6b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.4)
cmake_policy(SET CMP0037 NEW)
project(LibVNCServer)
@@ -23,6 +23,7 @@ set(COMMON_DIR ${CMAKE_CURRENT_SOURCE_DIR}/common)
set(LIBVNCCLIENT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libvncclient)
set(LIBVNCSRVTEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}/examples)
set(LIBVNCCLITEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}/client_examples)
+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)