multilineedit: handle unterminated mIRC codes
[quassel.git] / src / core / CMakeLists.txt
1 quassel_add_module(Core EXPORT)
2
3 target_sources(${TARGET} PRIVATE
4     abstractsqlstorage.cpp
5     authenticator.cpp
6     core.cpp
7     corealiasmanager.cpp
8     coreapplication.cpp
9     coreauthhandler.cpp
10     corebacklogmanager.cpp
11     corebasichandler.cpp
12     corebuffersyncer.cpp
13     corebufferviewconfig.cpp
14     corebufferviewmanager.cpp
15     coredccconfig.cpp
16     corehighlightrulemanager.cpp
17     coreidentity.cpp
18     coreignorelistmanager.cpp
19     coreircchannel.cpp
20     coreirclisthelper.cpp
21     coreircuser.cpp
22     corenetwork.cpp
23     corenetworkconfig.cpp
24     coresession.cpp
25     coresessioneventprocessor.cpp
26     coresettings.cpp
27     coretransfer.cpp
28     coretransfermanager.cpp
29     coreuserinputhandler.cpp
30     coreusersettings.cpp
31     ctcpparser.cpp
32     eventstringifier.cpp
33     identserver.cpp
34     ircparser.cpp
35     metricsserver.cpp
36     netsplit.cpp
37     oidentdconfiggenerator.cpp
38     postgresqlstorage.cpp
39     sessionthread.cpp
40     sqlauthenticator.cpp
41     sqlitestorage.cpp
42     storage.cpp
43
44     # needed for automoc
45     coreeventmanager.h
46 )
47
48 target_link_libraries(${TARGET}
49     PUBLIC
50         Qt5::Core
51         Qt5::Network
52         Qt5::Sql
53         Quassel::Common
54 )
55
56 if (HAVE_UMASK)
57     set_property(SOURCE oidentdconfiggenerator.cpp APPEND PROPERTY COMPILE_DEFINITIONS HAVE_UMASK)
58 endif()
59
60 if (HAVE_SSL)
61     target_sources(${TARGET} PRIVATE sslserver.cpp)
62 endif()
63
64 if (Ldap_FOUND)
65     target_sources(${TARGET} PRIVATE ldapauthenticator.cpp)
66     target_link_libraries(${TARGET} PRIVATE Ldap::Ldap)
67     set_property(SOURCE core.cpp APPEND PROPERTY COMPILE_DEFINITIONS HAVE_LDAP)
68 endif()
69
70 if (Qca-qt5_FOUND)
71     target_sources(${TARGET} PRIVATE cipher.cpp keyevent.cpp)
72     target_link_libraries(${TARGET} PUBLIC qca-qt5)
73     target_compile_definitions(${TARGET} PUBLIC -DHAVE_QCA2)
74 endif()
75
76 quassel_add_resource(Sql PATTERNS SQL/*.sql)
77 target_link_libraries(${TARGET} PUBLIC Quassel::Resource::Sql)