7 src/commandthread.cpp
\r
16 src/socketdefines.cpp
\r
17 src/stringfunctions.cpp
\r
18 src/threadcontroller.cpp
\r
19 src/uuidgenerator.cpp
\r
20 src/db/sqlite3db.cpp
\r
21 src/db/sqlite3recordset.cpp
\r
22 src/db/sqlite3statement.cpp
\r
23 src/freenet/fcpv2.cpp
\r
24 src/freenet/freenetmasterthread.cpp
\r
25 src/freenet/freenetssk.cpp
\r
26 src/freenet/identityinserter.cpp
\r
27 src/freenet/identityintroductioninserter.cpp
\r
28 src/freenet/identityintroductionrequester.cpp
\r
29 src/freenet/identityintroductionxml.cpp
\r
30 src/freenet/identityrequester.cpp
\r
31 src/freenet/identityxml.cpp
\r
32 src/freenet/introductionpuzzleinserter.cpp
\r
33 src/freenet/introductionpuzzlerequester.cpp
\r
34 src/freenet/introductionpuzzlexml.cpp
\r
35 src/freenet/messageinserter.cpp
\r
36 src/freenet/messagelistinserter.cpp
\r
37 src/freenet/messagelistrequester.cpp
\r
38 src/freenet/messagelistxml.cpp
\r
39 src/freenet/messagerequester.cpp
\r
40 src/freenet/messagexml.cpp
\r
41 src/freenet/periodicdbmaintenance.cpp
\r
42 src/freenet/trustlistinserter.cpp
\r
43 src/freenet/trustlistrequester.cpp
\r
44 src/freenet/trustlistxml.cpp
\r
45 src/freenet/unkeyedidcreator.cpp
\r
46 src/freenet/captcha/simplecaptcha.cpp
\r
47 src/freenet/captcha/easybmp/EasyBMP.cpp
\r
48 src/freenet/captcha/easybmp/EasyBMP_Font.cpp
\r
49 src/freenet/captcha/easybmp/EasyBMP_Geometry.cpp
\r
50 src/http/httpthread.cpp
\r
51 src/http/ipagehandler.cpp
\r
52 src/http/pages/addpeerpage.cpp
\r
53 src/http/pages/announceidentitypage.cpp
\r
54 src/http/pages/controlboardpage.cpp
\r
55 src/http/pages/createidentitypage.cpp
\r
56 src/http/pages/homepage.cpp
\r
57 src/http/pages/localidentitiespage.cpp
\r
58 src/http/pages/optionspage.cpp
\r
59 src/http/pages/peertrustpage.cpp
\r
60 src/http/pages/showcaptchapage.cpp
\r
61 src/nntp/nntpconnection.cpp
\r
62 src/nntp/nntplistener.cpp
\r
63 src/nntp/uwildmat.cpp
\r
64 src/nntp/mime/Mime.cpp
\r
65 src/nntp/mime/MimeChar.cpp
\r
66 src/nntp/mime/MimeCode.cpp
\r
67 src/nntp/mime/MimeType.cpp
\r
68 src/pthreadwrapper/guard.cpp
\r
69 src/pthreadwrapper/mutex.cpp
\r
70 src/pthreadwrapper/runnable.cpp
\r
71 src/pthreadwrapper/thread.cpp
\r
72 src/pthreadwrapper/threadedexecutor.cpp
\r
76 ADD_DEFINITIONS(-DTIXML_USE_STL)
\r
79 #IF(CMAKE_COMPILER_IS_GNUCXX)
\r
80 # #ADD_DEFINITIONS(-fpermissive)
\r
81 # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
\r
82 #ENDIF(CMAKE_COMPILER_IS_GNUCXX)
\r
84 ADD_EXECUTABLE(fms ${FMS_SRC})
\r
86 # For SQLite3 and shttpd
\r
87 IF(CMAKE_COMPILER_IS_GNUCC)
\r
88 TARGET_LINK_LIBRARIES(fms dl)
\r
89 ENDIF(CMAKE_COMPILER_IS_GNUCC)
\r
92 TARGET_LINK_LIBRARIES(fms ws2_32)
\r
95 FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3 sqlite3_s)
\r
96 FIND_LIBRARY(TINYXML_LIBRARY NAMES tinyxml tinyxml_s)
\r
97 FIND_LIBRARY(PTHREADS_LIBRARY NAMES pthread pthreads pthreadvc2)
\r
98 FIND_LIBRARY(SHTTPD_LIBRARY NAMES shttpd)
\r
100 IF(SQLITE3_LIBRARY)
\r
101 TARGET_LINK_LIBRARIES(fms ${SQLITE3_LIBRARY})
\r
102 ELSE(SQLITE3_LIBRARY)
\r
103 MESSAGE(STATUS "Could not find system SQLite library. Will compile from included source.")
\r
104 ADD_LIBRARY(sqlite3 libs/sqlite3/sqlite3.c)
\r
105 TARGET_LINK_LIBRARIES(fms sqlite3)
\r
106 INCLUDE_DIRECTORIES(libs/sqlite3)
\r
107 ENDIF(SQLITE3_LIBRARY)
\r
109 IF(TINYXML_LIBRARY)
\r
110 TARGET_LINK_LIBRARIES(fms ${TINYXML_LIBRARY})
\r
111 ELSE(TINYXML_LIBRARY)
\r
112 MESSAGE(STATUS "Could not find system TinyXML library. Will compile from included source.")
\r
113 ADD_LIBRARY(tinyxml libs/tinyxml/tinystr.cpp libs/tinyxml/tinyxml.cpp libs/tinyxml/tinyxmlerror.cpp libs/tinyxml/tinyxmlparser.cpp)
\r
114 TARGET_LINK_LIBRARIES(fms tinyxml)
\r
115 INCLUDE_DIRECTORIES(libs/tinyxml)
\r
116 ENDIF(TINYXML_LIBRARY)
\r
118 IF(PTHREADS_LIBRARY)
\r
119 TARGET_LINK_LIBRARIES(fms ${PTHREADS_LIBRARY})
\r
120 ELSE(PTHREADS_LIBRARY)
\r
121 MESSAGE(FATAL ERROR "Could not find pthreads library. You must set the location manually.")
\r
122 ENDIF(PTHREADS_LIBRARY)
\r
125 TARGET_LINK_LIBRARIES(fms ${SHTTPD_LIBRARY})
\r
126 ELSE(SHTTPD_LIBRARY)
\r
127 MESSAGE(STATUS "Could not find shttpd library. Will compile from included source.")
\r
128 ADD_DEFINITIONS(-DEMBEDDED)
\r
129 INCLUDE_DIRECTORIES(libs/shttpd/include)
\r
131 ADD_DEFINITIONS(-DNO_GUI)
\r
132 SET(SHTTPD_PLATFORM_SRC libs/shttpd/compat_win32.c)
\r
134 SET(SHTTPD_PLATFORM_SRC libs/shttpd/compat_unix.c)
\r
136 ADD_LIBRARY(shttpd ${SHTTPD_PLATFORM_SRC} libs/shttpd/auth.c libs/shttpd/cgi.c libs/shttpd/config.c libs/shttpd/io_cgi.c libs/shttpd/io_dir.c libs/shttpd/io_emb.c libs/shttpd/io_file.c libs/shttpd/io_socket.c libs/shttpd/io_ssi.c libs/shttpd/io_ssl.c libs/shttpd/log.c libs/shttpd/md5.c libs/shttpd/mime_type.c libs/shttpd/shttpd.c libs/shttpd/string.c)
\r
137 TARGET_LINK_LIBRARIES(fms shttpd)
\r
138 ENDIF(SHTTPD_LIBRARY)
\r