Files
FlClash/plugins/window/windows/CMakeLists.txt
T
chen08209 1e97716636 feat(platform): move desktop windows to plugins/window and rework the tray
plugins/window replaces the window_manager fork on every desktop.

Changelog: Tray hotkeys, node delays and a delay test
2026-09-30 11:39:58 +08:00

39 lines
930 B
CMake

cmake_minimum_required(VERSION 3.14)
set(PROJECT_NAME "window")
project(${PROJECT_NAME} LANGUAGES CXX)
cmake_policy(VERSION 3.14...3.25)
set(PLUGIN_NAME "window_plugin")
list(APPEND PLUGIN_SOURCES
"running_instance.cpp"
"running_instance.h"
"window_controller.cpp"
"window_controller.h"
"window_plugin.cpp"
"window_plugin.h"
"window_style.cpp"
"window_style.h"
)
add_library(${PLUGIN_NAME} SHARED
"include/window/window_plugin_c_api.h"
"window_plugin_c_api.cpp"
${PLUGIN_SOURCES}
)
apply_standard_settings(${PLUGIN_NAME})
set_target_properties(${PLUGIN_NAME} PROPERTIES
CXX_VISIBILITY_PRESET hidden)
target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
target_include_directories(${PLUGIN_NAME} INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin dwmapi)
set(window_bundled_libraries
""
PARENT_SCOPE
)