mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
44 lines
1.2 KiB
CMake
44 lines
1.2 KiB
CMake
project(kaffeine)
|
|
|
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
|
|
|
find_package(KDE4 REQUIRED)
|
|
find_package(X11 REQUIRED)
|
|
find_package(VLC 1.2 REQUIRED)
|
|
|
|
include(KDE4Defaults)
|
|
include(CheckIncludeFiles)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
${CMAKE_BINARY_DIR}
|
|
${KDE4_INCLUDES}
|
|
${VLC_INCLUDE_DIRS}
|
|
${X11_Xscreensaver_INCLUDE_PATH}
|
|
)
|
|
add_definitions(${KDE4_DEFINITIONS})
|
|
|
|
if(STRICT_BUILD)
|
|
add_definitions(-Werror -Weverything -Wno-packed -Wno-padded -Wno-sign-conversion -Wno-unreachable-code
|
|
-Wno-weak-vtables -ferror-limit=5
|
|
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII
|
|
-DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS)
|
|
endif(STRICT_BUILD)
|
|
|
|
check_include_files(${CMAKE_CURRENT_SOURCE_DIR}/include/frontend.h HAVE_DVB)
|
|
|
|
if(NOT HAVE_DVB)
|
|
MESSAGE(STATUS "Disabled features:\nDVB Digital television support for Linux\n")
|
|
set(HAVE_DVB 0)
|
|
endif(NOT HAVE_DVB)
|
|
|
|
add_subdirectory(deviceactions)
|
|
add_subdirectory(dtvdaemon)
|
|
add_subdirectory(icons)
|
|
add_subdirectory(profiles)
|
|
add_subdirectory(src)
|
|
macro_optional_add_subdirectory(po)
|
|
|
|
if(BUILD_TOOLS)
|
|
add_subdirectory(tools)
|
|
endif(BUILD_TOOLS)
|