version 0.2.23
[fms.git] / CMakeLists.txt
index 742bfc2..f5dd453 100644 (file)
@@ -1,16 +1,27 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4)\r
+IF(COMMAND CMAKE_POLICY)\r
+       CMAKE_POLICY(SET CMP0003 OLD)\r
+ENDIF(COMMAND CMAKE_POLICY)\r
+\r
 PROJECT(fms)\r
 \r
 OPTION(USE_BUNDLED_SQLITE "Use the bundled SQLite3 library." OFF)\r
-OPTION(DO_CHARSET_CONVERSION "Do charset conversion on sent messages to UTF-8.  This requires libiconv." OFF)\r
+IF(APPLE)\r
+       SET(USE_BUNDLED_SQLITE ON)\r
+ENDIF(APPLE)\r
+OPTION(DO_CHARSET_CONVERSION "Do charset conversion on sent messages to UTF-8.  This requires libiconv." ON)\r
+OPTION(I_HAVE_READ_THE_README "I have fully read and understood the readme.txt." OFF)\r
 \r
 SET(FMS_SRC \r
 src/base64.cpp\r
+src/bitmapvalidator.cpp\r
 src/board.cpp\r
 src/boardlist.cpp\r
 src/commandthread.cpp\r
 src/datetime.cpp\r
 src/global.cpp\r
 src/hex.cpp\r
+src/localidentity.cpp\r
 src/logfile.cpp\r
 src/main.cpp\r
 src/message.cpp\r
@@ -27,6 +38,7 @@ src/freenet/boardlistinserter.cpp
 src/freenet/boardlistrequester.cpp\r
 src/freenet/boardlistxml.cpp\r
 src/freenet/fcpv2.cpp\r
+src/freenet/fileinserter.cpp\r
 src/freenet/freenetmasterthread.cpp\r
 src/freenet/freenetssk.cpp\r
 src/freenet/identityinserter.cpp\r
@@ -60,16 +72,19 @@ src/http/ipagehandler.cpp
 src/http/pages/addpeerpage.cpp\r
 src/http/pages/announceidentitypage.cpp\r
 src/http/pages/boardspage.cpp\r
+src/http/pages/confirmpage.cpp\r
 src/http/pages/controlboardpage.cpp\r
 src/http/pages/createidentitypage.cpp\r
 src/http/pages/execquerypage.cpp\r
 src/http/pages/homepage.cpp\r
+src/http/pages/insertedfilespage.cpp\r
 src/http/pages/localidentitiespage.cpp\r
 src/http/pages/optionspage.cpp\r
 src/http/pages/peerdetailspage.cpp\r
 src/http/pages/peermaintenancepage.cpp\r
 src/http/pages/peertrustpage.cpp\r
 src/http/pages/showcaptchapage.cpp\r
+src/nntp/extensiontrust.cpp\r
 src/nntp/nntpconnection.cpp\r
 src/nntp/nntplistener.cpp\r
 src/nntp/uwildmat.cpp\r
@@ -95,6 +110,10 @@ ELSE(WIN32)
        SET(FMS_PLATFORM_SRC src/fmsdaemon.cpp)\r
 ENDIF(WIN32)\r
 \r
+IF(NOT I_HAVE_READ_THE_README)\r
+       MESSAGE(FATAL_ERROR "You must fully read the readme.txt before continuing.")\r
+ENDIF(NOT I_HAVE_READ_THE_README)\r
+\r
 ADD_DEFINITIONS(-DTIXML_USE_STL)\r
 \r
 # was for ZThreads\r
@@ -143,7 +162,7 @@ IF(SQLITE3_LIBRARY)
        TARGET_LINK_LIBRARIES(fms ${SQLITE3_LIBRARY})\r
 ELSE(SQLITE3_LIBRARY)\r
        IF(NOT USE_BUNDLED_SQLITE)\r
-               MESSAGE(STATUS "Could not find system SQLite library.  Will compile from included source.")\r
+               MESSAGE(STATUS "Could not find system SQLite3 library.  Will compile from included source.")\r
        ENDIF(NOT USE_BUNDLED_SQLITE)\r
        ADD_LIBRARY(sqlite3 libs/sqlite3/sqlite3.c)\r
        TARGET_LINK_LIBRARIES(fms sqlite3)\r
@@ -162,7 +181,7 @@ ENDIF(TINYXML_LIBRARY)
 IF(PTHREADS_LIBRARY)\r
        TARGET_LINK_LIBRARIES(fms ${PTHREADS_LIBRARY})\r
 ELSE(PTHREADS_LIBRARY)\r
-       MESSAGE(FATAL ERROR "Could not find pthreads library.  You must set the location manually.")\r
+       MESSAGE(FATAL_ERROR "Could not find pthreads library.  You must set the location manually.")\r
 ENDIF(PTHREADS_LIBRARY)\r
 \r
 IF(SHTTPD_LIBRARY)\r
@@ -187,7 +206,7 @@ IF(DO_CHARSET_CONVERSION)
                TARGET_LINK_LIBRARIES(fms ${ICONV_LIBRARY})\r
        ELSE(ICONV_LIBRARY)\r
                IF(WIN32)\r
-                       MESSAGE(FATAL ERROR "Could not find iconv library.  You must set the location manually, or turn off charset conversion.")\r
+                       MESSAGE(FATAL_ERROR "Could not find iconv library.  You must set the location manually, or turn off charset conversion.")\r
                ENDIF(WIN32)\r
        ENDIF(ICONV_LIBRARY)\r
 ENDIF(DO_CHARSET_CONVERSION)\r