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
bufferviewmanager.h
coreinfo.h
identity.h
+ ignorelistmanager.h
ircchannel.h
irclisthelper.h
ircuser.h
network.h
+ networkconfig.h
settings.h
signalproxy.h
syncableobject.h)
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} ${CMAKE_BINARY_DIR}/i18n/qrc_i18n.cxx)
-set_source_files_properties(${CMAKE_BINARY_DIR}/i18n/qrc_i18n.cxx PROPERTIES GENERATED true)
-add_dependencies(mod_common i18n)
+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)