mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
* Script can be defined in the macro segment or loaded from a file * Supports both LUA and Python * Can be used for actions and conditions * obs_script_create and obs_script_destroy are resolved at runtime (Let's hope the API remains stable)
41 lines
1.2 KiB
CMake
41 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(advanced-scene-switcher-scripting)
|
|
|
|
# --- End of section ---
|
|
|
|
add_library(${PROJECT_NAME} MODULE)
|
|
|
|
target_sources(
|
|
${PROJECT_NAME}
|
|
PRIVATE macro-action-script.cpp
|
|
macro-action-script.hpp
|
|
macro-action-script-inline.cpp
|
|
macro-action-script-inline.hpp
|
|
macro-condition-script.cpp
|
|
macro-condition-script.hpp
|
|
macro-condition-script-inline.cpp
|
|
macro-condition-script-inline.hpp
|
|
macro-script-handler.cpp
|
|
macro-script-handler.hpp
|
|
macro-segment-script.cpp
|
|
macro-segment-script.hpp
|
|
macro-segment-script-inline.cpp
|
|
macro-segment-script-inline.hpp)
|
|
|
|
target_sources(
|
|
${PROJECT_NAME}
|
|
PRIVATE utils/inline-script.cpp
|
|
utils/inline-script.hpp
|
|
utils/obs-script-helpers.cpp
|
|
utils/obs-script-helpers.hpp
|
|
utils/properties-view.cpp
|
|
utils/properties-view.hpp
|
|
utils/properties-view.moc.hpp)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/utils")
|
|
|
|
setup_advss_plugin(${PROJECT_NAME})
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
|
|
install_advss_plugin(${PROJECT_NAME})
|