| 1 |
# Always include srcdir and builddir in include path |
| 2 |
# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in |
| 3 |
# about every subdir |
| 4 |
# since cmake 2.4.0 |
| 5 |
set(CMAKE_INCLUDE_CURRENT_DIR ON) |
| 6 |
|
| 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 preferred over the already installed ones |
| 10 |
# since cmake 2.4.1 |
| 11 |
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) |
| 12 |
|
| 13 |
# Use colored output |
| 14 |
# since cmake 2.4.0 |
| 15 |
set(CMAKE_COLOR_MAKEFILE ON) |
| 16 |
|
| 17 |
# Create the compile command database for clang by default |
| 18 |
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) |
| 19 |
|
| 20 |
# Always build with -fPIC |
| 21 |
set(CMAKE_POSITION_INDEPENDENT_CODE ON) |