DefineCMakeDefaults.cmake 940 B

1234567891011121314151617181920212223242526272829
  1. # (c) 2014 Copyright ownCloud GmbH
  2. # Redistribution and use is allowed according to the terms of the BSD license.
  3. # For details see the accompanying COPYING* file.
  4. # Always include srcdir and builddir in include path
  5. # This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
  6. # about every subdir
  7. # since cmake 2.4.0
  8. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  9. # Put the include dirs which are in the source or build tree
  10. # before all other include dirs, so the headers in the sources
  11. # are preferred over the already installed ones
  12. # since cmake 2.4.1
  13. set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
  14. # Use colored output
  15. # since cmake 2.4.0
  16. 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")
  20. # set -Werror
  21. set(CMAKE_ENABLE_WERROR ON)
  22. # enables folders for targets to be visible in an IDE
  23. set_property(GLOBAL PROPERTY USE_FOLDERS ON)