The file nano/rpc_test/common.hpp was very confusing, a lot of stuff was dumped into one file and it was hard to read. This helps break things into more manageable pieces.
22 lines
529 B
CMake
22 lines
529 B
CMake
add_executable(
|
|
rpc_test
|
|
common.hpp
|
|
rpc_context.hpp
|
|
test_response.hpp
|
|
rpc_context.cpp
|
|
test_response.cpp
|
|
common.cpp
|
|
entry.cpp
|
|
receivable.cpp
|
|
rpc.cpp)
|
|
|
|
target_link_libraries(rpc_test test_common)
|
|
|
|
target_compile_definitions(
|
|
rpc_test
|
|
PUBLIC -DACTIVE_NETWORK=${ACTIVE_NETWORK}
|
|
PRIVATE -DTAG_VERSION_STRING=${TAG_VERSION_STRING}
|
|
-DGIT_COMMIT_HASH=${GIT_COMMIT_HASH})
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/submodules)
|
|
include_directories(${CMAKE_SOURCE_DIR}/submodules/gtest/googletest/include)
|