You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.5 KiB
81 lines
1.5 KiB
############################################
|
|
# #
|
|
# Improvements and feedbacks are welcome #
|
|
# #
|
|
# This file is released under GPL >= 3 #
|
|
# #
|
|
############################################
|
|
|
|
|
|
cmake_minimum_required( VERSION 3.1 )
|
|
|
|
|
|
#### general package setup
|
|
|
|
project( desktop-effects-tde )
|
|
|
|
|
|
#### include essential cmake modules
|
|
|
|
include( FindPkgConfig )
|
|
|
|
|
|
#### include our cmake modules
|
|
|
|
include( TDEMacros )
|
|
|
|
|
|
##### set version number ########################
|
|
|
|
tde_set_project_version( )
|
|
|
|
|
|
##### setup install paths
|
|
|
|
include( TDESetupPaths )
|
|
tde_setup_paths( )
|
|
|
|
|
|
##### optional stuff
|
|
|
|
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
|
option( WITH_XORG_SESSION_COMPIZ_WM "Install XOrg session configuration for Compiz as WM" ${WITH_ALL_OPTIONS} )
|
|
|
|
|
|
##### user requested modules
|
|
|
|
option( BUILD_ALL "Build all" ON )
|
|
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
|
|
|
|
|
##### configure checks
|
|
|
|
include( ConfigureChecks.cmake )
|
|
|
|
|
|
##### directories
|
|
|
|
add_subdirectory( DesktopEffects )
|
|
add_subdirectory( data )
|
|
|
|
|
|
##### desktop-effect-tde (executable)
|
|
|
|
install(
|
|
PROGRAMS ${PROJECT_NAME}
|
|
DESTINATION ${BIN_INSTALL_DIR}
|
|
)
|
|
|
|
|
|
##### other data
|
|
|
|
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
|
|
tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
|
|
|
|
if( WITH_XORG_SESSION_COMPIZ_WM )
|
|
install(
|
|
FILES 25enable-compiz
|
|
DESTINATION /etc/X11/Xsession.d
|
|
)
|
|
endif()
|