-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scope_guard library as a submodule
A custom CMakeLists.txt is used to create the scope_guard libray. The original cmake libray file is only used to setup tests. See ricab/scope_guard#3.
- Loading branch information
1 parent
445aa0d
commit f819a1f
Showing
6 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cmake_minimum_required(VERSION 3.11) # for FetchContent | ||
project(scope_guard) | ||
|
||
# handle inclusions and dependencies | ||
include(CheckCXXSymbolExists) | ||
include(CheckCXXCompilerFlag) | ||
include(GNUInstallDirs) | ||
|
||
|
||
add_library(scope_guard INTERFACE) | ||
add_library(scope_guard::scope_guard ALIAS scope_guard) # for consumption via add_subdirectory() | ||
|
||
target_include_directories(scope_guard | ||
INTERFACE | ||
include # assuming we move the header file to an `include` directory | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../scope_guard/scope_guard.hpp |
Submodule scope_guard
added at
71a045
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters