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 # Define the generic version of the libraries here
18 set(GENERIC_LIB_VERSION "0.1.0")
19 set(GENERIC_LIB_SOVERSION "0")
21 # Set the default build type to release with debug info
22 if (NOT CMAKE_BUILD_TYPE)
23 set(CMAKE_BUILD_TYPE RelWithDebInfo
25 "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
27 endif (NOT CMAKE_BUILD_TYPE)
29 # Create the compile command database for clang by default
30 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)