diff options
author | Nicolas Viennot <nicolas@viennot.biz> | 2013-06-10 00:58:12 -0400 |
---|---|---|
committer | Nicolas Viennot <nicolas@viennot.biz> | 2013-06-10 02:50:07 -0400 |
commit | 0f7ccda4fb34685d5bbd62eba3ff8d5f63bdc71b (patch) | |
tree | 5cbf451994ed987cf4b37fab2f130c5e4ab19b7e /libssh/cmake/Modules/DefineCMakeDefaults.cmake | |
parent | 220b2afb3c4596b875624a5024fff134234cb102 (diff) |
Adding libssh
Diffstat (limited to 'libssh/cmake/Modules/DefineCMakeDefaults.cmake')
-rw-r--r-- | libssh/cmake/Modules/DefineCMakeDefaults.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libssh/cmake/Modules/DefineCMakeDefaults.cmake b/libssh/cmake/Modules/DefineCMakeDefaults.cmake new file mode 100644 index 00000000..72893c3c --- /dev/null +++ b/libssh/cmake/Modules/DefineCMakeDefaults.cmake @@ -0,0 +1,27 @@ +# 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 +# are prefered over the already installed ones +# 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 +set(GENERIC_LIB_VERSION "0.1.0") +set(GENERIC_LIB_SOVERSION "0") + +# Set the default build type to release with debug info +if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE RelWithDebInfo + CACHE STRING + "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." + ) +endif (NOT CMAKE_BUILD_TYPE) |