您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
585B

  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()