X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2FCMakeLists.txt;h=30eed0226c6f02d2e76bd98e5e5975570643c7c7;hb=49813fa53b34ffa35837d30fd022e2fc72f57eb5;hp=819077a3b84e8ad7aa44ddebccc7e5483b73cc61;hpb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc;p=quassel.git diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 819077a3..30eed022 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -7,12 +7,14 @@ include(${QT_USE_FILE}) set(SOURCES aliasmanager.cpp backlogmanager.cpp + basichandler.cpp bufferinfo.cpp buffersyncer.cpp bufferviewconfig.cpp bufferviewmanager.cpp cliparser.cpp identity.cpp + ignorelistmanager.cpp ircchannel.cpp irclisthelper.cpp ircuser.cpp @@ -36,11 +38,13 @@ endif(CMAKE_HOST_UNIX) set(MOC_HDRS aliasmanager.h backlogmanager.h + basichandler.h buffersyncer.h bufferviewconfig.h bufferviewmanager.h coreinfo.h identity.h + ignorelistmanager.h ircchannel.h irclisthelper.h ircuser.h @@ -70,6 +74,14 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}) # for vers set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES version.gen) add_library(mod_common STATIC ${SOURCES} ${MOC}) + if(APPLE) target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation") -endif(APPLE) \ No newline at end of file +endif(APPLE) + +if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") + find_library(libdl dl) + if(NOT libdl MATCHES "NOTFOUND") + target_link_libraries(mod_common ${libdl}) + endif(NOT libdl MATCHES "NOTFOUND") +endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")