You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 7 година
123456789101112131415161718192021222324252627282930
  1. cmake_minimum_required(VERSION 3.2)
  2. project(scoped-ressource VERSION 0.0.1)
  3. message(STATUS "~~~ ${PROJECT_NAME} v${PROJECT_VERSION} ~~~")
  4. option(UNITTEST "Build Unit Tests" ON)
  5. add_compile_options(-Wall
  6. -Wextra
  7. -pedantic
  8. -Werror
  9. -Wshadow
  10. -Wold-style-cast
  11. )
  12. set(CMAKE_CXX_STANDARD 14)
  13. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  14. set(CMAKE_CXX_EXTENSIONS OFF)
  15. include_directories("include")
  16. if( UNITTEST )
  17. enable_testing()
  18. add_subdirectory("test")
  19. endif()