-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support adding ipasir2-cpp to CMake projects via add_subdirectory()
- Loading branch information
Showing
7 changed files
with
46 additions
and
30 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "testdeps/ipasir2"] | ||
path = testdeps/ipasir2 | ||
url = https://github.com/ipasir2/ipasir2 | ||
[submodule "testdeps/Catch2"] | ||
path = testdeps/Catch2 | ||
url = https://github.com/catchorg/Catch2 | ||
[submodule "deps/ipasir2"] | ||
path = deps/ipasir2 | ||
url = https://github.com/ipasir2/ipasir2 |
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,6 @@ | ||
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/ipasir2/ipasir2.h) | ||
message(FATAL_ERROR "git submodules have not been set up yet. Run git submodule update --init") | ||
endif() | ||
|
||
add_library(ipasir2 INTERFACE) | ||
target_include_directories(ipasir2 INTERFACE ipasir2) |
Submodule ipasir2
updated
from 000000 to 6a24b5
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/Catch2/CMakeLists.txt | ||
OR NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/ipasir2/ipasir2.h) | ||
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/Catch2/CMakeLists.txt) | ||
message(FATAL_ERROR "git submodules have not been set up yet. Run git submodule update --init") | ||
endif() | ||
|
||
add_library(ipasir2 INTERFACE) | ||
target_include_directories(ipasir2 INTERFACE ipasir2) | ||
|
||
add_subdirectory(Catch2) |