Better time formatting by using an explicit format
[quassel.git] / src / core / CMakeLists.txt
1 # Builds the core module
2
3 setup_qt_variables(Network Sql Script)
4
5 set(SOURCES
6     abstractsqlstorage.cpp
7     core.cpp
8     corealiasmanager.cpp
9     coreapplication.cpp
10     corebacklogmanager.cpp
11     corebasichandler.cpp
12     corebuffersyncer.cpp
13     corebufferviewconfig.cpp
14     corebufferviewmanager.cpp
15     corecoreinfo.cpp
16     coreidentity.cpp
17     coreignorelistmanager.cpp
18     coreircchannel.cpp
19     coreirclisthelper.cpp
20     coreircuser.cpp
21     corenetwork.cpp
22     corenetworkconfig.cpp
23     coresession.cpp
24     coresessioneventprocessor.cpp
25     coresettings.cpp
26     coreuserinputhandler.cpp
27     coreusersettings.cpp
28     ctcpparser.cpp
29     eventstringifier.cpp
30     ircparser.cpp
31     netsplit.cpp
32     oidentdconfiggenerator.cpp
33     postgresqlstorage.cpp
34     sessionthread.cpp
35     sqlitestorage.cpp
36     storage.cpp)
37
38 set(MOC_HDRS
39     abstractsqlstorage.h
40     core.h
41     corealiasmanager.h
42     coreapplication.h
43     corebacklogmanager.h
44     corebasichandler.h
45     corebuffersyncer.h
46     corebufferviewconfig.h
47     corebufferviewmanager.h
48     corecoreinfo.h
49     coreeventmanager.h
50     coreidentity.h
51     coreignorelistmanager.h
52     coreircchannel.h
53     coreirclisthelper.h
54     coreircuser.h
55     corenetwork.h
56     corenetworkconfig.h
57     coresession.h
58     coresessioneventprocessor.h
59     coreuserinputhandler.h
60     ctcpparser.h
61     eventstringifier.h
62     ircparser.h
63     netsplit.h
64     oidentdconfiggenerator.h
65     postgresqlstorage.h
66     sqlitestorage.h
67     storage.h
68     sessionthread.h)
69
70 set(HEADERS
71     coresettings.h
72     coreusersettings.h)
73
74 if(HAVE_SSL)
75   set(SOURCES ${SOURCES} sslserver.cpp)
76   set(MOC_HDRS ${MOC_HDRS} sslserver.h)
77   include_directories(${OPENSSL_INCLUDE_DIR})
78 endif(HAVE_SSL)
79
80 if(HAVE_QCA2)
81   set(SOURCES ${SOURCES} cipher.cpp)
82   set(HEADERS ${HEADERS} cipher.h)
83   include_directories(${QCA2_INCLUDE_DIR})
84 endif(HAVE_QCA2)
85
86 include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
87
88 if(NOT WITH_QT5)
89   qt4_wrap_cpp(MOC ${MOC_HDRS})
90 endif(NOT WITH_QT5)
91
92 set(CORE_RCS ${CORE_RCS} core/sql.qrc PARENT_SCOPE)
93
94 add_library(mod_core STATIC ${SOURCES} ${MOC} ${HEADERS})
95 add_dependencies(mod_core mod_common)
96 set_target_properties(mod_core PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
97
98 if(HAVE_QCA2)
99   target_link_libraries(mod_core ${QCA2_LIBRARIES})
100 endif(HAVE_QCA2)