summaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorBenoit Neil <suky0001@free.fr>2009-04-06 20:44:01 +0000
committerBenoit Neil <suky0001@free.fr>2009-04-06 20:44:01 +0000
commit06047d91036130bce6fde44ee481582c1a979706 (patch)
treef37938ce4554019ac494abb5821666c77d408807 /lib/CMakeLists.txt
parent2362637e9049d01138ee8d4fd4c8cafb563f693a (diff)
downloadcurl-06047d91036130bce6fde44ee481582c1a979706.tar.gz
Added curl (exe) target, fixed static/dynamic linking errors.
PS: Sorry if the added file has executable perms on Linux, I didn't found anything related to it...
Diffstat (limited to 'lib/CMakeLists.txt')
-rw-r--r--lib/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index f44abdf8b..b938000c0 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -197,8 +197,10 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
IF(CURL_STATICLIB)
+ # Static lib
SET(CURL_USER_DEFINED_DYNAMIC_OR_STATIC STATIC)
ELSE()
+ # DLL / so dynamic lib
SET(CURL_USER_DEFINED_DYNAMIC_OR_STATIC SHARED)
ENDIF()
@@ -214,13 +216,17 @@ IF(WIN32)
ADD_DEFINITIONS( -D_USRDLL )
ENDIF()
+ADD_DEFINITIONS(
+ -DBUILDING_LIBCURL
+)
+
IF(CURL_ZLIB AND ZLIB_FOUND)
TARGET_LINK_LIBRARIES(${LIB_NAME} ${ZLIB_LIBRARIES})
#ADD_DEFINITIONS( -DHAVE_ZLIB_H -DHAVE_ZLIB -DHAVE_LIBZ )
ENDIF()
# IF(CURL_SSL AND CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
- # LIST(APPEND DEPENDENCIES_NAMES OpenSSL)
+ # TARGET_LINK_LIBRARIES(${LIB_NAME} ${OPENSSL_LIBRARIES})
# ADD_DEFINITIONS( -DUSE_SSLEAY )
# ENDIF()