32 lines
862 B (Stored with Git LFS)
CMake
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cmake_minimum_required(VERSION 3.10)
project(com.hotspot.streamdockPluginExample VERSION 1.0)
# set the C++ standard to C++ 20
set(CMAKE_CXX_STANDARD 20)
set(CXX_STANDARD_REQUIRED true)
if (MSVC)
add_definitions("/Zc:__cplusplus" -DUNICODE=1)
endif()
include_directories("${CMAKE_SOURCE_DIR}")
# StreamDock CPP SDK
add_subdirectory(StreamDockCPPSDK/Vendor)
add_subdirectory(StreamDockCPPSDK/StreamDockSDK)
set(
SOURCES
HSDExampleAction.cpp
HSDExamplePlugin.cpp
main.cpp
)
add_executable(
streamdockPluginExample
${SOURCES}
)
# Link StreamDock CPP SDK
target_link_libraries(streamdockPluginExample StreamDockSDK)
# 如果运行时需要链接的dll动态库同时需要把这些dll动态库拷贝到exe同级目录下
# 需要把lib文件拷贝到.sln文件所在目录下也就是cmake的build目录下