From 973f794635447e9a25374c518be76d3f4fb98dd7 Mon Sep 17 00:00:00 2001 From: Tim Goya Date: Sat, 3 Nov 2007 17:23:34 +0000 Subject: [PATCH] Detect and active the addon manager in the cmake build SVN-Revision: 5178 --- CMakeLists.txt | 7 +++++++ config.h.cmake | 2 ++ 2 files changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c77d58be4..95549f526 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,13 @@ MARK_AS_ADVANCED( INCLUDE_DIRECTORIES(${PHYSFS_INCLUDE_DIR}) LINK_LIBRARIES(${PHYSFS_LIBRARY}) +FIND_PACKAGE(CURL) +IF(${CURL_FOUND}) + INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR}) + LINK_LIBRARIES(${CURL_LIBRARY}) + SET(HAVE_LIBCURL TRUE) +ENDIF(${CURL_FOUND}) + #FIND_PACKAGE(ICONV REQUIRED) #INCLUDE_DIRECTORIES(${ICONV_INCLUDE_DIR}) #LINK_LIBRARIES(${ICONV_LIBRARY}) diff --git a/config.h.cmake b/config.h.cmake index 4d3d1cdbb..5e33fc10f 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -22,3 +22,5 @@ #cmakedefine WORDS_BIGENDIAN #cmakedefine HAVE_OPENGL + +#cmakedefine HAVE_LIBCURL -- 2.11.0