Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(tests)
|
||||
@@ -0,0 +1,10 @@
|
||||
add_library(Protocol STATIC)
|
||||
|
||||
target_sources(Protocol
|
||||
PRIVATE
|
||||
protocol.cxx
|
||||
PUBLIC
|
||||
FILE_SET HEADERS
|
||||
BASE_DIRS include
|
||||
FILES include/protocol/protocol.hxx
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
add_executable(Protocol_tests
|
||||
test_protocol.cxx
|
||||
)
|
||||
|
||||
target_link_libraries(Protocol_tests
|
||||
PRIVATE
|
||||
Protocol
|
||||
Catch2::Catch2WithMain
|
||||
)
|
||||
|
||||
catch_discover_tests(Protocol_tests)
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <protocol/protocol.hxx>
|
||||
|
||||
TEST_CASE("something", "[stun]") {
|
||||
SECTION("true") { REQUIRE(true); }
|
||||
}
|
||||
Reference in New Issue
Block a user