X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=fae257d406abac0292d097e9e52ee18610d137e5;hp=7807157e9e90dc66924757e7f96bca2697428d41;hb=4bdaf5f2fd6d70155a60e13e125e80cb4b811a22;hpb=eaba93b703ba5bca4edf09f4c076a00b529115cd diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 7807157e..fae257d4 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -11,18 +11,25 @@ set(SOURCES buffersyncer.cpp bufferviewconfig.cpp bufferviewmanager.cpp - global.cpp + cliparser.cpp identity.cpp + ircchannel.cpp + ircuser.cpp logger.cpp message.cpp + network.cpp + quassel.cpp settings.cpp signalproxy.cpp syncableobject.cpp - util.cpp - network.cpp - ircuser.cpp - ircchannel.cpp - cliparser.cpp) + util.cpp) + +if(CMAKE_HOST_WIN32) + set(SOURCES ${SOURCES} logbacktrace_win.cpp) +endif(CMAKE_HOST_WIN32) +if(CMAKE_HOST_UNIX) + set(SOURCES ${SOURCES} logbacktrace_unix.cpp) +endif(CMAKE_HOST_UNIX) set(MOC_HDRS aliasmanager.h @@ -41,18 +48,25 @@ set(MOC_HDRS syncableobject.h) set(HEADERS ${MOC_HDRS} + abstractcliparser.h bufferinfo.h - global.h + cliparser.h logger.h message.h types.h - util.h - cliparser.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 -add_definitions(-DHAVE_VERSION_GEN) # we ensure that by deps in the main CMakeLists.txt 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