Detect and active the addon manager in the cmake build
authorTim Goya <tuxdev103@gmail.com>
Sat, 3 Nov 2007 17:23:34 +0000 (17:23 +0000)
committerTim Goya <tuxdev103@gmail.com>
Sat, 3 Nov 2007 17:23:34 +0000 (17:23 +0000)
SVN-Revision: 5178

CMakeLists.txt
config.h.cmake

index c77d58b..95549f5 100644 (file)
@@ -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})
index 4d3d1cd..5e33fc1 100644 (file)
@@ -22,3 +22,5 @@
 #cmakedefine WORDS_BIGENDIAN
 
 #cmakedefine HAVE_OPENGL
+
+#cmakedefine HAVE_LIBCURL