mirror of
https://gitlab.com/theadib/JSonRPCPlugin.git
synced 2026-08-29 15:40:24 +08:00
23 lines
622 B
CMake
23 lines
622 B
CMake
# CloudCompare Json RPC plugin based on example for standard plugins
|
|
|
|
# Add an option to CMake to control whether we build this plugin or not
|
|
option( PLUGIN_STANDARD_QJSONRPC "Install Json RPC plugin" ON )
|
|
|
|
if ( PLUGIN_STANDARD_QJSONRPC )
|
|
project( QJSON_RPC_PLUGIN )
|
|
|
|
AddPlugin( NAME ${PROJECT_NAME} )
|
|
|
|
find_package(Qt5 COMPONENTS Network WebSockets REQUIRED)
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Network Qt5::WebSockets)
|
|
|
|
add_subdirectory( include )
|
|
add_subdirectory( src )
|
|
|
|
target_include_directories( ${PROJECT_NAME}
|
|
PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
endif()
|