\r
SET(FMS_SRC \r
src/base64.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/identitytestglobal.cpp\r
src/logfile.cpp\r
src/main.cpp\r
+src/message.cpp\r
+src/messagelist.cpp\r
src/option.cpp\r
src/socketdefines.cpp\r
src/stringfunctions.cpp\r
src/freenet/introductionpuzzleremover.cpp\r
src/freenet/introductionpuzzlerequester.cpp\r
src/freenet/introductionpuzzlexml.cpp\r
+src/freenet/messageinserter.cpp\r
+src/freenet/messagelistinserter.cpp\r
+src/freenet/messagelistrequester.cpp\r
+src/freenet/messagelistxml.cpp\r
+src/freenet/messagerequester.cpp\r
+src/freenet/messagexml.cpp\r
src/freenet/trustlistinserter.cpp\r
src/freenet/trustlistrequester.cpp\r
src/freenet/trustlistxml.cpp\r
src/freenet/captcha/easybmp/EasyBMP.cpp\r
src/freenet/captcha/easybmp/EasyBMP_Font.cpp\r
src/freenet/captcha/easybmp/EasyBMP_Geometry.cpp\r
+src/nntp/nntpconnection.cpp\r
+src/nntp/nntplistener.cpp\r
+src/nntp/uwildmat.cpp\r
+src/nntp/mime/Mime.cpp\r
+src/nntp/mime/MimeChar.cpp\r
+src/nntp/mime/MimeCode.cpp\r
+src/nntp/mime/MimeType.cpp\r
src/xyssl/sha1.c\r
)\r
\r
ADD_DEFINITIONS(-DTIXML_USE_STL)\r
\r
+ADD_LIBRARY(sqlite3 libs/sqlite3/sqlite3.c)\r
+ADD_LIBRARY(tinyxml libs/tinyxml/tinystr.cpp libs/tinyxml/tinyxml.cpp libs/tinyxml/tinyxmlerror.cpp libs/tinyxml/tinyxmlparser.cpp)\r
+\r
ADD_EXECUTABLE(fms ${FMS_SRC})\r
\r
-FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3 sqlite3_s)\r
-FIND_LIBRARY(TINYXML_LIBRARY NAMES tinyxml tinyxml_s)\r
-FIND_LIBRARY(ZTHREADS_LIBRARY NAMES zthread zthread_s)\r
+INCLUDE_DIRECTORIES(libs/sqlite3 libs/tinyxml)\r
+\r
+TARGET_LINK_LIBRARIES(fms sqlite3 tinyxml)\r
\r
IF(WIN32)\r
TARGET_LINK_LIBRARIES(fms ws2_32)\r
ENDIF(WIN32)\r
\r
-IF(SQLITE3_LIBRARY)\r
- TARGET_LINK_LIBRARIES(fms ${SQLITE3_LIBRARY})\r
-ENDIF(SQLITE3_LIBRARY)\r
-IF(TINYXML_LIBRARY)\r
- TARGET_LINK_LIBRARIES(fms ${TINYXML_LIBRARY})\r
-ENDIF(TINYXML_LIBRARY)\r
+#FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3 sqlite3_s)\r
+#FIND_LIBRARY(TINYXML_LIBRARY NAMES tinyxml tinyxml_s)\r
+FIND_LIBRARY(ZTHREADS_LIBRARY NAMES zthread ZThread zthread_s)\r
+\r
+#IF(SQLITE3_LIBRARY)\r
+# TARGET_LINK_LIBRARIES(fms ${SQLITE3_LIBRARY})\r
+#ELSE(SQLITE3_LIBRARY)\r
+# MESSAGE(FATAL_ERROR "Could not find SQLite library. You must set the location manually.")\r
+#ENDIF(SQLITE3_LIBRARY)\r
+\r
+#IF(TINYXML_LIBRARY)\r
+# TARGET_LINK_LIBRARIES(fms ${TINYXML_LIBRARY})\r
+#ELSE(TINYXML_LIBRARY)\r
+# MESSAGE(FATAL_ERROR "Could not find TinyXML library. You must set the location manually.")\r
+#ENDIF(TINYXML_LIBRARY)\r
+\r
IF(ZTHREADS_LIBRARY)\r
TARGET_LINK_LIBRARIES(fms ${ZTHREADS_LIBRARY})\r
+ELSE(ZTHREADS_LIBRARY)\r
+ MESSAGE(FATAL_ERROR "Could not find ZThreads library. You must set the location manually.")\r
ENDIF(ZTHREADS_LIBRARY)\r