2016-07-26 17:53:11 +03:00
|
|
|
# (c) 2014 Copyright ownCloud GmbH
|
2014-09-18 14:26:55 +04:00
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING* file.
|
|
|
|
|
2008-02-27 20:56:47 +03:00
|
|
|
# Always include srcdir and builddir in include path
|
|
|
|
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
|
|
|
|
# about every subdir
|
|
|
|
# since cmake 2.4.0
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
# Put the include dirs which are in the source or build tree
|
|
|
|
# before all other include dirs, so the headers in the sources
|
2020-05-03 23:54:50 +03:00
|
|
|
# are preferred over the already installed ones
|
2008-02-27 20:56:47 +03:00
|
|
|
# since cmake 2.4.1
|
|
|
|
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
|
|
|
|
|
|
|
|
# Use colored output
|
|
|
|
# since cmake 2.4.0
|
|
|
|
set(CMAKE_COLOR_MAKEFILE ON)
|
|
|
|
|
|
|
|
# Define the generic version of the libraries here
|
2008-05-06 12:51:12 +04:00
|
|
|
set(GENERIC_LIB_VERSION "0.1.0")
|
|
|
|
set(GENERIC_LIB_SOVERSION "0")
|
2008-02-27 20:56:47 +03:00
|
|
|
|
2013-07-31 15:12:10 +04:00
|
|
|
# set -Werror
|
|
|
|
set(CMAKE_ENABLE_WERROR ON)
|
|
|
|
|
2021-05-07 15:10:44 +03:00
|
|
|
# enables folders for targets to be visible in an IDE
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|