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/boardlistinserter.cpp
\r
24 src/freenet/boardlistrequester.cpp
\r
25 src/freenet/boardlistxml.cpp
\r
26 src/freenet/fcpv2.cpp
\r
27 src/freenet/freenetmasterthread.cpp
\r
28 src/freenet/freenetssk.cpp
\r
29 src/freenet/identityinserter.cpp
\r
30 src/freenet/identityintroductioninserter.cpp
\r
31 src/freenet/identityintroductionrequester.cpp
\r
32 src/freenet/identityintroductionxml.cpp
\r
33 src/freenet/identityrequester.cpp
\r
34 src/freenet/identityxml.cpp
\r
35 src/freenet/introductionpuzzleinserter.cpp
\r
36 src/freenet/introductionpuzzlerequester.cpp
\r
37 src/freenet/introductionpuzzlexml.cpp
\r
38 src/freenet/messageinserter.cpp
\r
39 src/freenet/messagelistinserter.cpp
\r
40 src/freenet/messagelistrequester.cpp
\r
41 src/freenet/messagelistxml.cpp
\r
42 src/freenet/messagerequester.cpp
\r
43 src/freenet/messagexml.cpp
\r
44 src/freenet/periodicdbmaintenance.cpp
\r
45 src/freenet/trustlistinserter.cpp
\r
46 src/freenet/trustlistrequester.cpp
\r
47 src/freenet/trustlistxml.cpp
\r
48 src/freenet/unkeyedidcreator.cpp
\r
49 src/freenet/captcha/simplecaptcha.cpp
\r
50 src/freenet/captcha/easybmp/EasyBMP.cpp
\r
51 src/freenet/captcha/easybmp/EasyBMP_Font.cpp
\r
52 src/freenet/captcha/easybmp/EasyBMP_Geometry.cpp
\r
53 src/http/httpthread.cpp
\r
54 src/http/identityexportxml.cpp
\r
55 src/http/ipagehandler.cpp
\r
56 src/http/pages/addpeerpage.cpp
\r
57 src/http/pages/announceidentitypage.cpp
\r
58 src/http/pages/controlboardpage.cpp
\r
59 src/http/pages/createidentitypage.cpp
\r
60 src/http/pages/execquerypage.cpp
\r
61 src/http/pages/homepage.cpp
\r
62 src/http/pages/localidentitiespage.cpp
\r
63 src/http/pages/optionspage.cpp
\r
64 src/http/pages/peerdetailspage.cpp
\r
65 src/http/pages/peermaintenancepage.cpp
\r
66 src/http/pages/peertrustpage.cpp
\r
67 src/http/pages/showcaptchapage.cpp
\r
68 src/nntp/nntpconnection.cpp
\r
69 src/nntp/nntplistener.cpp
\r
70 src/nntp/uwildmat.cpp
\r
71 src/nntp/mime/Mime.cpp
\r
72 src/nntp/mime/MimeChar.cpp
\r
73 src/nntp/mime/MimeCode.cpp
\r
74 src/nntp/mime/MimeType.cpp
\r
75 src/pthreadwrapper/guard.cpp
\r
76 src/pthreadwrapper/mutex.cpp
\r
77 src/pthreadwrapper/runnable.cpp
\r
78 src/pthreadwrapper/thread.cpp
\r
79 src/pthreadwrapper/threadedexecutor.cpp
\r
84 SET(FMS_PLATFORM_SRC src/fmsservice.cpp)
\r
86 SET(FMS_PLATFORM_SRC src/fmsdaemon.cpp)
\r
89 ADD_DEFINITIONS(-DTIXML_USE_STL)
\r
92 #IF(CMAKE_COMPILER_IS_GNUCXX)
\r
93 # #ADD_DEFINITIONS(-fpermissive)
\r
94 # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
\r
95 #ENDIF(CMAKE_COMPILER_IS_GNUCXX)
\r
97 ADD_EXECUTABLE(fms ${FMS_SRC} ${FMS_PLATFORM_SRC})
\r
99 # For SQLite3 and shttpd
\r
100 IF(CMAKE_COMPILER_IS_GNUCC)
\r
101 TARGET_LINK_LIBRARIES(fms dl)
\r
102 ENDIF(CMAKE_COMPILER_IS_GNUCC)
\r
105 TARGET_LINK_LIBRARIES(fms ws2_32)
\r
108 FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3 sqlite3_s)
\r
109 FIND_LIBRARY(TINYXML_LIBRARY NAMES tinyxml tinyxml_s)
\r
110 FIND_LIBRARY(PTHREADS_LIBRARY NAMES pthread pthreads pthreadvc2)
\r
111 FIND_LIBRARY(SHTTPD_LIBRARY NAMES shttpd)
\r
113 IF(SQLITE3_LIBRARY)
\r
114 TARGET_LINK_LIBRARIES(fms ${SQLITE3_LIBRARY})
\r
115 ELSE(SQLITE3_LIBRARY)
\r
116 MESSAGE(STATUS "Could not find system SQLite library. Will compile from included source.")
\r
117 ADD_LIBRARY(sqlite3 libs/sqlite3/sqlite3.c)
\r
118 TARGET_LINK_LIBRARIES(fms sqlite3)
\r
119 INCLUDE_DIRECTORIES(libs/sqlite3)
\r
120 ENDIF(SQLITE3_LIBRARY)
\r
122 IF(TINYXML_LIBRARY)
\r
123 TARGET_LINK_LIBRARIES(fms ${TINYXML_LIBRARY})
\r
124 ELSE(TINYXML_LIBRARY)
\r
125 MESSAGE(STATUS "Could not find system TinyXML library. Will compile from included source.")
\r
126 ADD_LIBRARY(tinyxml libs/tinyxml/tinystr.cpp libs/tinyxml/tinyxml.cpp libs/tinyxml/tinyxmlerror.cpp libs/tinyxml/tinyxmlparser.cpp)
\r
127 TARGET_LINK_LIBRARIES(fms tinyxml)
\r
128 INCLUDE_DIRECTORIES(libs/tinyxml)
\r
129 ENDIF(TINYXML_LIBRARY)
\r
131 IF(PTHREADS_LIBRARY)
\r
132 TARGET_LINK_LIBRARIES(fms ${PTHREADS_LIBRARY})
\r
133 ELSE(PTHREADS_LIBRARY)
\r
134 MESSAGE(FATAL ERROR "Could not find pthreads library. You must set the location manually.")
\r
135 ENDIF(PTHREADS_LIBRARY)
\r
138 TARGET_LINK_LIBRARIES(fms ${SHTTPD_LIBRARY})
\r
139 ELSE(SHTTPD_LIBRARY)
\r
140 MESSAGE(STATUS "Could not find shttpd library. Will compile from included source.")
\r
141 ADD_DEFINITIONS(-DEMBEDDED)
\r
142 INCLUDE_DIRECTORIES(libs/shttpd/include)
\r
144 ADD_DEFINITIONS(-DNO_GUI)
\r
145 SET(SHTTPD_PLATFORM_SRC libs/shttpd/compat_win32.c)
\r
147 SET(SHTTPD_PLATFORM_SRC libs/shttpd/compat_unix.c)
\r
149 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
150 TARGET_LINK_LIBRARIES(fms shttpd)
\r
151 ENDIF(SHTTPD_LIBRARY)
\r