diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-02-01 16:44:26 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-02-01 16:53:20 +0200 |
commit | 4acb982e2d5b82ddfe603414665256323a25ad5e (patch) | |
tree | b137112d00a4340f0cf25b64ebe5926f505c3de2 /CMakeLists.txt | |
download | xdg-desktop-portal-tde-4acb982e2d5b82ddfe603414665256323a25ad5e.tar.gz xdg-desktop-portal-tde-4acb982e2d5b82ddfe603414665256323a25ad5e.zip |
Initial commit
Adds implementation of FileChooser interface
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..93a23f2 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,54 @@ +################################################################################ +# XDG Desktop Portal implementation for TDE # +# Copyright (C) 2024 Mavridis Philippe <mavridisf@gmail.com> # +# # +# Improvements and feedback are welcome! # +# This software is licensed under the terms of the GNU GPL v3 license. # +################################################################################ + +cmake_minimum_required( VERSION 3.1 ) + +project( xdg-desktop-portal-tde ) + +### Required modules ########################################################### +include( FindPkgConfig ) +include( CheckFunctionExists ) +include( CheckSymbolExists ) +include( CheckIncludeFile ) +include( CheckLibraryExists ) +include( CheckCSourceCompiles ) +include( CheckCXXSourceCompiles ) + +### TDE macros ################################################################# +include( TDEMacros ) +tde_set_project_version( ) + +include( TDESetupPaths ) +tde_setup_paths( ) + +### Optional support ########################################################### +# option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) + +### Modules to build ########################################################### +option( BUILD_ALL "Build all" ON ) +option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) +# option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) + +### Configure checks ########################################################### +include( ConfigureChecks.cmake ) + +### Compiler settings ########################################################## +add_definitions( -DHAVE_CONFIG_H ) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) +set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) + +### Add subdirectories ######################################################### +add_subdirectory( src ) +add_subdirectory( interfaces ) +tde_conditional_add_project_docs( BUILD_DOC ) +# tde_conditional_add_project_translations( BUILD_TRANSLATIONS ) + +### Write configuration ######################################################## +configure_file( config.h.cmake config.h @ONLY )
\ No newline at end of file |