Skip to content

Commit

Permalink
v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 16, 2021
1 parent 587e329 commit 8786dcc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ cmake_minimum_required(VERSION 3.16)
# You can later set fine-grained standards for each target using `target_compile_features`
# set(CMAKE_CXX_STANDARD 17)
# Add ProjectOptions v0.12.0
# https://github.com/cpp-best-practices/ProjectOptions
# Add project_options v0.12.0
# https://github.com/cpp-best-practices/project_options
include(FetchContent)
FetchContent_Declare(projectoptions URL https://github.com/cpp-best-practices/ProjectOptions/archive/refs/tags/v0.12.0.zip)
FetchContent_MakeAvailable(projectoptions)
include(${projectoptions_SOURCE_DIR}/Index.cmake)
FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/tags/v0.12.0.zip)
FetchContent_MakeAvailable(_project_options)
include(${_project_options_SOURCE_DIR}/Index.cmake)
# uncomment to enable vcpkg:
# # Setup vcpkg - should be called before defining project()
Expand Down Expand Up @@ -137,15 +137,15 @@ cmake_minimum_required(VERSION 3.16)
# You can later set fine-grained standards for each target using `target_compile_features`
# set(CMAKE_CXX_STANDARD 17)
# Add ProjectOptions v0.12.0
# https://github.com/cpp-best-practices/ProjectOptions
# Add project_options v0.12.0
# https://github.com/cpp-best-practices/project_options
include(FetchContent)
FetchContent_Declare(projectoptions URL https://github.com/cpp-best-practices/ProjectOptions/archive/refs/tags/v0.12.0.zip)
FetchContent_MakeAvailable(projectoptions)
include(${projectoptions_SOURCE_DIR}/Index.cmake)
FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/tags/v0.12.0.zip)
FetchContent_MakeAvailable(_project_options)
include(${_project_options_SOURCE_DIR}/Index.cmake)
# ❗ Add global CMake options
include(${projectoptions_SOURCE_DIR}/src/GlobalOptions.cmake)
include(${_project_options_SOURCE_DIR}/src/GlobalOptions.cmake)
# uncomment to enable vcpkg:
# # Setup vcpkg - should be called before defining project()
Expand Down
6 changes: 3 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set(CMAKE_CXX_STANDARD 17)

### Add project_options
# include(FetchContent)
# FetchContent_Declare(project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/heads/main.zip)
# FetchContent_MakeAvailable(project_options)
# include(${ProjectOptions_SOURCE_DIR}/Index.cmake)
# FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/heads/main.zip)
# FetchContent_MakeAvailable(_project_options)
# include(${_project_options_SOURCE_DIR}/Index.cmake)
include(../src/Index.cmake)

run_vcpkg()
Expand Down

0 comments on commit 8786dcc

Please sign in to comment.