2011-07-18 14:19:06 +00:00
|
|
|
project( SnoreNotify )
|
2013-03-13 10:15:48 +00:00
|
|
|
cmake_minimum_required( VERSION 2.8.8 )
|
2011-07-18 14:19:06 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_PREFIX_PATH}/share/apps/cmake/modules)
|
2013-07-06 12:12:38 +00:00
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
2014-01-14 10:15:43 +00:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2011-07-18 14:19:06 +00:00
|
|
|
|
2011-11-12 18:20:58 +00:00
|
|
|
#######################################################################
|
2014-01-14 10:01:22 +00:00
|
|
|
option(WITH_WITH_KDE "Try to build with KDE support if availibe" ON)
|
2011-10-07 10:51:37 +00:00
|
|
|
option(WITH_FREEDESKTOP_FRONTEND "Build the freedesktop frontend" OFF)
|
|
|
|
option(WITH_GROWL_BACKEND "Build the Growl backend" ON)
|
2013-07-24 10:34:45 +00:00
|
|
|
option(WITH_SNORE_DEAMON "Build the Snore deamon, which redirects notifications" OFF)
|
2011-11-12 18:20:58 +00:00
|
|
|
#######################################################################
|
|
|
|
|
2013-07-06 23:52:28 +00:00
|
|
|
set(SNORE_VERSION_MAJOR 0)
|
2014-01-10 17:31:28 +00:00
|
|
|
set(SNORE_VERSION_MINOR 5)
|
|
|
|
set(SNORE_VERSION_SUFFIX "pre")
|
2013-03-13 10:15:48 +00:00
|
|
|
|
2014-01-14 10:01:22 +00:00
|
|
|
if(WITH_WITH_KDE)
|
|
|
|
find_package(KDE4)
|
|
|
|
endif()
|
2013-07-06 12:12:38 +00:00
|
|
|
|
2011-07-18 14:19:06 +00:00
|
|
|
|
2011-08-02 15:50:07 +00:00
|
|
|
|
2011-07-23 11:14:37 +00:00
|
|
|
if(KDE4_FOUND)
|
2014-01-14 10:01:22 +00:00
|
|
|
add_definitions(-DHAVE_KDE ${KDE4_DEFINITIONS} -D_UNICODE)
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
2011-07-23 11:14:37 +00:00
|
|
|
else(KDE4_FOUND)
|
2014-01-14 10:01:22 +00:00
|
|
|
include(NoKDE)
|
2011-07-23 11:14:37 +00:00
|
|
|
endif(KDE4_FOUND)
|
|
|
|
|
|
|
|
|
2011-07-19 16:18:30 +00:00
|
|
|
find_package( CryptoPP )
|
2011-07-25 15:15:58 +00:00
|
|
|
find_package( Boost COMPONENTS system thread)
|
2011-07-18 14:19:06 +00:00
|
|
|
|
2011-11-09 22:13:46 +00:00
|
|
|
if(Boost_USE_STATIC_RUNTIME)
|
|
|
|
add_definitions(-DBOOST_THREAD_USE_LIB )
|
|
|
|
endif(Boost_USE_STATIC_RUNTIME)
|
|
|
|
|
2014-01-14 10:15:43 +00:00
|
|
|
set(LIBSNORE_PLUGIN_PATH ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libsnore)
|
|
|
|
set(SNORE_PLUGIN_INSTALL_PATH LIBRARY DESTINATION ${LIBSNORE_PLUGIN_PATH})
|
|
|
|
add_definitions(-DLIBSNORE_PLUGIN_PATH="${LIBSNORE_PLUGIN_PATH}" -DCMAKE_INSTALL_LIBDIR="${CMAKE_INSTALL_LIBDIR}")
|
|
|
|
message(STATUS "Installing plugins to ${LIBSNORE_PLUGIN_PATH}")
|
2011-07-18 14:19:06 +00:00
|
|
|
|
|
|
|
add_subdirectory(data)
|
|
|
|
add_subdirectory(share)
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|
|
|