X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=710cfbcd083b4d5632162acdf825592792233313;hp=eb485549e6e2aae67e293423be733569c0df3421;hb=9c15e81b15a20e861c707e240c2cfee56bdf4bc9;hpb=6097f67231950c4c22845735db8b997a844fec48 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index eb485549..710cfbcd 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -12,6 +12,7 @@ set(SOURCES bufferviewconfig.cpp bufferviewmanager.cpp cliparser.cpp + ctcpevent.cpp event.cpp eventmanager.cpp identity.cpp @@ -56,6 +57,7 @@ set(HEADERS ${MOC_HDRS} abstractcliparser.h bufferinfo.h cliparser.h + ctcpevent.h event.h ircevent.h networkevent.h @@ -89,8 +91,15 @@ if(APPLE) endif(APPLE) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") + set(FIND_LIBDL TRUE) +endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") +if(CMAKE_HOST_SYSTEM_NAME STREQUAL "kFreeBSD") + set(FIND_LIBDL TRUE) +endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "kFreeBSD") + +if(FIND_LIBDL) 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") +endif(FIND_LIBDL)