2011-07-18 14:19:06 +00:00
|
|
|
project( SnoreNotify )
|
|
|
|
cmake_minimum_required( VERSION 2.8 )
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_PREFIX_PATH}/share/apps/cmake/modules)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
2011-07-23 11:14:37 +00:00
|
|
|
find_package(KDE4)
|
|
|
|
|
|
|
|
if(KDE4_FOUND)
|
|
|
|
add_definitions(-DHAVE_KDE ${KDE4_DEFINITIONS} -D_UNICODE)
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
else(KDE4_FOUND)
|
|
|
|
include(NoKDE)
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
option(WITH_FREEDESKTOP_FRONTEND "Build the freedesktop frontend" OFF)
|
|
|
|
option(WITH_GROWL_BACKEND "Build the Growl backend" ON)
|
|
|
|
|
|
|
|
set(PLUGIN_INSTALL_PATH LIBRARY DESTINATION bin/snoreplugins)
|
|
|
|
|
|
|
|
add_subdirectory(data)
|
|
|
|
add_subdirectory(share)
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|
|
|