From: Tim Goya Date: Sat, 3 Nov 2007 17:23:34 +0000 (+0000) Subject: Detect and active the addon manager in the cmake build X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=973f794635447e9a25374c518be76d3f4fb98dd7;p=supertux.git Detect and active the addon manager in the cmake build SVN-Revision: 5178 --- 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