Files
JSonRPCPlugin/CMakeLists.txt
T
2020-10-25 10:39:21 +01:00

24 lines
730 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_JSONRPC "Install Json RPC plugin" ON )
if ( PLUGIN_JSONRPC )
project( JsonRPCPlugin )
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}
)
# set dependencies to necessary libraries
# target_link_libraries( ${PROJECT_NAME} LIB1 )
endif()