-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from camio/build-conformance-fixes
Some modifications for Beman standard conformance
- Loading branch information
Showing
14 changed files
with
77 additions
and
68 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,3 @@ | ||
[submodule "papers/wg21"] | ||
path = papers/P2988/wg21 | ||
url = https://github.com/mpark/wg21.git | ||
[submodule "extern/googletest"] | ||
path = extern/googletest | ||
url = https://github.com/google/googletest.git |
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
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 +1,15 @@ | ||
add_subdirectory(googletest EXCLUDE_FROM_ALL) | ||
if(BUILD_TESTING) | ||
# Fetch GoogleTest | ||
FetchContent_Declare( | ||
googletest | ||
GIT_REPOSITORY https://github.com/google/googletest.git | ||
GIT_TAG | ||
f8d7d77c06936315286eb55f8de22cd23c188571 # release-1.14.0 | ||
EXCLUDE_FROM_ALL | ||
) | ||
block() | ||
set(INSTALL_GTEST OFF) # Disable GoogleTest installation | ||
set(BUILD_TESTING OFF) # Disable GoogleTest tests | ||
FetchContent_MakeAvailable(googletest) | ||
endblock() | ||
endif() |
Submodule googletest
deleted from
1d17ea
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,50 @@ | ||
add_library(beman.iterator_interface26) | ||
add_library(beman::iterator_interface26 ALIAS beman.iterator_interface26) | ||
|
||
target_sources( | ||
beman.iterator_interface26 | ||
PRIVATE | ||
iterator_interface.cpp | ||
) | ||
|
||
include(GNUInstallDirs) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
target_include_directories(beman.iterator_interface26 PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../../include> | ||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_LOWER_PROJECT_NAME}> # <prefix>/include/scratch | ||
) | ||
|
||
install( | ||
TARGETS beman.iterator_interface26 | ||
EXPORT ${TARGETS_EXPORT_NAME}1 | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
) | ||
|
||
string(TOLOWER ${CMAKE_PROJECT_NAME} CMAKE_LOWER_PROJECT_NAME) | ||
|
||
install( | ||
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_LOWER_PROJECT_NAME} | ||
FILES_MATCHING PATTERN "*.hpp" | ||
) | ||
|
||
target_link_libraries(beman.iterator_interface26) | ||
|
||
## Tests | ||
if(BUILD_TESTING) | ||
add_executable(iterator_interface_test "") | ||
|
||
target_sources( | ||
iterator_interface_test | ||
PRIVATE | ||
iterator_interface.t.cpp | ||
) | ||
|
||
target_link_libraries(iterator_interface_test beman.iterator_interface26) | ||
target_link_libraries(iterator_interface_test GTest::gtest) | ||
target_link_libraries(iterator_interface_test GTest::gtest_main) | ||
|
||
include(GoogleTest) | ||
gtest_discover_tests(iterator_interface_test) | ||
endif() |
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 @@ | ||
#include <beman/iterator_interface26/iterator_interface.hpp> |
8 changes: 4 additions & 4 deletions
8
src/Beman/iterator/iterator_interface.t.cpp → ...ator_interface26/iterator_interface.t.cpp
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