X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=9d0af6eea581ae4228b0cf80f9fd40eab1e864ad;hb=2baaaea16e777a1fe961d6cc4d34aa9dd323333e;hp=819077a3b84e8ad7aa44ddebccc7e5483b73cc61;hpb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc;p=quassel.git diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 819077a3..9d0af6ee 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -13,6 +13,7 @@ set(SOURCES bufferviewmanager.cpp cliparser.cpp identity.cpp + ignorelistmanager.cpp ircchannel.cpp irclisthelper.cpp ircuser.cpp @@ -41,6 +42,7 @@ set(MOC_HDRS bufferviewmanager.h coreinfo.h identity.h + ignorelistmanager.h ircchannel.h irclisthelper.h ircuser.h @@ -70,6 +72,16 @@ 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_UNIX) + find_library(libdl dl) + if (libdl-NOTFOUND) + message(FATAL_ERROR "Cannot find required library: libdl") + endif (libdl-NOTFOUND) + + target_link_libraries(mod_common ${libdl}) +endif(CMAKE_HOST_UNIX)