1 # Always include srcdir and builddir in include path
2 # This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
5 set(CMAKE_INCLUDE_CURRENT_DIR ON)
7 # Put the include dirs which are in the source or build tree
8 # before all other include dirs, so the headers in the sources
9 # are prefered over the already installed ones
11 set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
15 set(CMAKE_COLOR_MAKEFILE ON)
17 # Create the compile command database for clang by default
18 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
20 # Always build with -fPIC
21 set(CMAKE_POSITION_INDEPENDENT_CODE ON)