2015-09-03 05:08:47 +03:00
|
|
|
# let cmake handle mocking and UI compiling
|
2015-02-27 07:40:26 +00:00
|
|
|
# since cmake 2.8.6
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
2015-09-03 05:08:47 +03:00
|
|
|
# since cmake 3.0.0
|
2015-09-01 01:05:33 +03:00
|
|
|
set(CMAKE_AUTOUIC ON)
|
2015-02-27 07:40:26 +00:00
|
|
|
|
2021-02-03 08:58:51 +02:00
|
|
|
# always include srcdir and builddir in include path, this saves typing
|
2015-09-03 05:08:47 +03:00
|
|
|
# ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} in about every subdir
|
2014-11-13 01:04:59 +02:00
|
|
|
# since cmake 2.4.0
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
2015-09-03 05:08:47 +03:00
|
|
|
# put the include dirs which are in the source or build tree before all other
|
|
|
|
# include dirs, so the headers in the sources are preferred over the already
|
|
|
|
# installed ones
|
2014-11-13 01:04:59 +02:00
|
|
|
# since cmake 2.4.1
|
|
|
|
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
|
|
|
|
|
2021-02-05 07:37:29 +02:00
|
|
|
# do not duplicate interface includes as system from projects providing
|
|
|
|
# imported targets in case the include directories are already included
|
|
|
|
# explicitly (via include_directories() which always uses non-system style),
|
|
|
|
# reduces the command-line arguments that have to be passed to the compiler and
|
|
|
|
# most likely the build times
|
2021-02-03 08:58:51 +02:00
|
|
|
set(CMAKE_NO_SYSTEM_FROM_IMPORTED ON)
|
|
|
|
|
2021-03-11 05:26:08 +02:00
|
|
|
# skip re-linking during installation
|
|
|
|
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
|
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
|
|
|
2021-07-28 03:08:42 +03:00
|
|
|
# do not export symbols that are not public
|
|
|
|
set(CMAKE_C_VISIBILITY_PRESET "hidden")
|
|
|
|
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
|
|
|
|
|
2015-09-03 05:08:47 +03:00
|
|
|
# define the generic version of the libraries here, this makes it easy to
|
|
|
|
# advance it when the next KDE release comes. Use this version number for
|
|
|
|
# libraries
|
2021-08-13 19:55:38 +03:00
|
|
|
set(GENERIC_LIB_VERSION "4.21")
|
2014-11-13 01:04:59 +02:00
|
|
|
set(GENERIC_LIB_SOVERSION "4")
|