X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=a4cc8099679f08fa23bbcc8c3c62bc2001654011;hp=5316d586d1fe06794528fd0cb9b4dcbedb42ae00;hb=edc55b1f86cf613a332eeeb5d85537a54120dfa5;hpb=1a45f16a9734820fba42fe1db3f38dd1eee49df6 diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 5316d586..a4cc8099 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,4 +1,4 @@ -quassel_add_module(Core) +quassel_add_module(Core EXPORT) target_sources(${TARGET} PRIVATE abstractsqlstorage.cpp @@ -44,14 +44,23 @@ target_sources(${TARGET} PRIVATE coreeventmanager.h ) -if (HAVE_SSL) - target_sources(${TARGET} PRIVATE sslserver.cpp) -endif() +target_link_libraries(${TARGET} + PUBLIC + Qt5::Core + Qt5::Network + Qt5::Script + Qt5::Sql + Quassel::Common +) if (HAVE_UMASK) set_property(SOURCE oidentdconfiggenerator.cpp APPEND PROPERTY COMPILE_DEFINITIONS HAVE_UMASK) endif() +if (HAVE_SSL) + target_sources(${TARGET} PRIVATE sslserver.cpp) +endif() + if (Ldap_FOUND) target_sources(${TARGET} PRIVATE ldapauthenticator.cpp) target_link_libraries(${TARGET} PRIVATE Ldap::Ldap) @@ -64,14 +73,5 @@ if (Qca-qt5_FOUND) target_compile_definitions(${TARGET} PUBLIC -DHAVE_QCA2) endif() -target_link_libraries(${TARGET} - PUBLIC - Qt5::Core - Qt5::Network - Qt5::Script - Qt5::Sql - Quassel::Common -) - quassel_add_resource(Sql PATTERNS SQL/*.sql) target_link_libraries(${TARGET} PUBLIC Quassel::Resource::Sql)