X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=9d0af6eea581ae4228b0cf80f9fd40eab1e864ad;hp=dc790b6a2c9f24f45eb6a9a1b5a3461f34126ecc;hb=73146d4eb2334bd95f98d27dcd7fa3d7cea4adc3;hpb=36b30b6b8775f5322fad3d1ee99545a07baf9e20 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index dc790b6a..9d0af6ee 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -13,11 +13,14 @@ set(SOURCES bufferviewmanager.cpp cliparser.cpp identity.cpp + ignorelistmanager.cpp ircchannel.cpp + irclisthelper.cpp ircuser.cpp logger.cpp message.cpp network.cpp + networkconfig.cpp quassel.cpp settings.cpp signalproxy.cpp @@ -39,10 +42,12 @@ set(MOC_HDRS bufferviewmanager.h coreinfo.h identity.h + ignorelistmanager.h ircchannel.h irclisthelper.h ircuser.h network.h + networkconfig.h settings.h signalproxy.h syncableobject.h) @@ -56,9 +61,27 @@ set(HEADERS ${MOC_HDRS} types.h util.h) +if(APPLE) + set(SOURCES ${SOURCES} mac_utils.cpp) + set(HEADERS ${HEADERS} mac_utils.h) +endif(APPLE) + qt4_wrap_cpp(MOC ${MOC_HDRS}) include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}) # for version.inc and version.gen 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) + +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)