blob: 0cf895296ee9fe157328e0e8adf20da788eb2712 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
find_package(RapidJSON REQUIRED)
plugin_manifest(SouthRPC name "SouthRPC")
plugin_manifest(SouthRPC displayname "SouthRPC")
plugin_manifest(SouthRPC description "Implements JSON-RPC 2.0 Bridge for Northstar over HTTP 1.1")
plugin_manifest(SouthRPC run_on_server ON) # Insecure but sure
plugin_manifest(SouthRPC run_on_client ON)
add_library(SouthRPC SHARED
"${CMAKE_CURRENT_SOURCE_DIR}/init.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/plugin.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/plugin.h"
"${CMAKE_CURRENT_SOURCE_DIR}/handler.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/handler.h"
"${CMAKE_CURRENT_SOURCE_DIR}/helper.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/helper.h"
"${CMAKE_CURRENT_SOURCE_DIR}/http_server.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/http_server.h"
"${CMAKE_CURRENT_SOURCE_DIR}/rpc_server.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/rpc_server.h"
)
target_include_directories(SouthRPC PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(SouthRPC rapidjson_header)
target_link_libraries(SouthRPC ws2_32)
target_precompile_headers(SouthRPC PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ns_plugin.h")
plugin_link(SouthRPC)
plugin_thunderstore(SouthRPC
"https://github.com/Jan200101/SouthRPC"
"${PROJECT_SOURCE_DIR}/README.md"
"${PROJECT_SOURCE_DIR}/icon.png"
)
if (BUILD_LOCAL)
add_subdirectory(local)
endif()
|