Skip to content

Commit

Permalink
testing initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GothAck committed Feb 28, 2020
1 parent 805f4ed commit 954885d
Show file tree
Hide file tree
Showing 6 changed files with 17,722 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
add_subdirectory(vendor)
add_subdirectory(rpc)
add_subdirectory(compiler)
add_subdirectory(test)

export(TARGETS flatrpc plog rpc_fbs flatrpcc NAMESPACE FlatRPC:: FILE FlatRPCTargets.cmake)

Expand Down
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
all: ./build
@cmake -S . -B ./build
@$(MAKE) -C ./build
@make test

./build:
@mkdir -p $@

test: ./build
@cmake -S . -B ./build
@$(MAKE) -C ./build test
@find build/test -type f -executable -print0 | xargs -0 -n1 /usr/bin/env

9 changes: 9 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_executable(test_rpcrunnable
test_rpcrunnable.cpp
)
set_property(TARGET test_rpcrunnable PROPERTY CXX_STANDARD 20)
target_link_libraries(test_rpcrunnable flatrpc)

add_custom_target(test)

add_dependencies(test test_rpcrunnable)
Loading

0 comments on commit 954885d

Please sign in to comment.