-
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.
- Loading branch information
Showing
13 changed files
with
38 additions
and
11 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
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,29 @@ | ||
cmake_minimum_required (VERSION 3.24) | ||
|
||
project(spffl20) | ||
|
||
if(NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE Release) | ||
endif() | ||
|
||
set(CMAKE_CXX_FLAGS_RELEASE "-O2") | ||
|
||
set(CMAKE_CXX_STANDARD 20 CACHE STRING "C++ Standard") | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
add_subdirectory(spffl) | ||
#add_subdirectory(lib) | ||
#add_subdirectory(cli) | ||
|
||
enable_testing() | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/") | ||
add_subdirectory(test) | ||
|
||
# ---------------------------------------------------------------- | ||
#install( | ||
# DIRECTORY "spffl/" # The trailing slash is important so "spffl" isn't a part of the install path | ||
# DESTINATION "include/spffl" | ||
# FILES_MATCHING PATTERN "*.h" | ||
#) | ||
#install(TARGETS spffl DESTINATION lib) | ||
#install(TARGETS spiff DESTINATION bin) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
This is Catch2 for `cpp20/spffl`. |
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,7 @@ | ||
#include <catch2/catch_test_macros.hpp> | ||
|
||
#include "spffl/mod/foo.h" | ||
|
||
TEST_CASE("spffl::mod::foo") { | ||
CHECK(foo(2,3) == 5); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.