X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=f8337cb8bb9c43e3c07397a629a6cc64c3ef7c05;hb=d9f4d3f0eabd3767b4d25438319116f77c158c52;hp=7c883a9082e577e4c7a28d29aee8086f702d7526;hpb=08adbf35b56f8ce8cf3a8edf614aa0c67061e60f;p=quassel.git diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 7c883a90..f8337cb8 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -13,7 +13,9 @@ set(SOURCES bufferviewmanager.cpp cliparser.cpp identity.cpp + ignorelistmanager.cpp ircchannel.cpp + irclisthelper.cpp ircuser.cpp logger.cpp message.cpp @@ -40,6 +42,7 @@ set(MOC_HDRS bufferviewmanager.h coreinfo.h identity.h + ignorelistmanager.h ircchannel.h irclisthelper.h ircuser.h @@ -69,6 +72,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")