Blame cmake/Modules/DefineCMakeDefaults.cmake

Packit ac4610
# Always include srcdir and builddir in include path
Packit ac4610
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
Packit ac4610
# about every subdir
Packit ac4610
# since cmake 2.4.0
Packit ac4610
set(CMAKE_INCLUDE_CURRENT_DIR ON)
Packit ac4610
Packit ac4610
# Put the include dirs which are in the source or build tree
Packit ac4610
# before all other include dirs, so the headers in the sources
Packit ac4610
# are prefered over the already installed ones
Packit ac4610
# since cmake 2.4.1
Packit ac4610
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
Packit ac4610
Packit ac4610
# Use colored output
Packit ac4610
# since cmake 2.4.0
Packit ac4610
set(CMAKE_COLOR_MAKEFILE ON)
Packit ac4610
Packit ac4610
# Define the generic version of the libraries here
Packit ac4610
set(GENERIC_LIB_VERSION "0.1.0")
Packit ac4610
set(GENERIC_LIB_SOVERSION "0")
Packit ac4610
Packit ac4610
# Set the default build type to release with debug info
Packit ac4610
if (NOT CMAKE_BUILD_TYPE)
Packit ac4610
  set(CMAKE_BUILD_TYPE RelWithDebInfo
Packit ac4610
    CACHE STRING
Packit ac4610
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
Packit ac4610
  )
Packit ac4610
endif (NOT CMAKE_BUILD_TYPE)
Packit ac4610
Packit ac4610
# Create the compile command database for clang by default
Packit ac4610
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)