summaryrefslogtreecommitdiffstats
path: root/libssh/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-08-11 15:38:49 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-11 15:38:49 +0200
commit5e4bc6ec7947a403da3b1989c39accf16449f601 (patch)
tree7fe4acd3fcdc86a51664bdde4478fe5b534bc3e4 /libssh/CMakeLists.txt
parentf3612879a8c8ceabd4c1ed85839b8f58d11f9ed1 (diff)
downloadlibssh-5e4bc6ec7947a403da3b1989c39accf16449f601.tar.gz
libssh-5e4bc6ec7947a403da3b1989c39accf16449f601.tar.xz
libssh-5e4bc6ec7947a403da3b1989c39accf16449f601.zip
Fix compilation with MSVC and use declspec to export functions.
Thanks to Patrick Spendrin <ps_ml@gmx.de> for all the MSVC fixes.
Diffstat (limited to 'libssh/CMakeLists.txt')
-rw-r--r--libssh/CMakeLists.txt17
1 files changed, 6 insertions, 11 deletions
diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt
index fa8eb413..83469f3f 100644
--- a/libssh/CMakeLists.txt
+++ b/libssh/CMakeLists.txt
@@ -136,13 +136,6 @@ if (WITH_SERVER)
)
endif (WITH_SERVER)
-if (MSVC)
- set(libssh_SRCS
- ${libssh_SRCS}
- libssh.def
- )
-endif (MSVC)
-
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}
${LIBSSH_PRIVATE_INCLUDE_DIRS}
@@ -161,6 +154,8 @@ set_target_properties(
${LIBRARY_SOVERSION}
OUTPUT_NAME
ssh
+ DEFINE_SYMBOL
+ SSH_EXPORTS
)
if (UNIX AND CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
@@ -175,10 +170,10 @@ endif (UNIX AND CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug
install(
TARGETS
${LIBSSH_SHARED_LIBRARY}
- DESTINATION
- ${LIB_INSTALL_DIR}
- COMPONENT
- libraries
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR}
+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ COMPONENT libraries
)
if (WITH_STATIC_LIB)