-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (29 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.18)
project(active-scene-dock VERSION 0.1.1)
if(BUILD_OUT_OF_TREE)
find_package(LibObs REQUIRED)
include_directories(../obs-studio/UI/obs-frontend-api)
link_directories(../obs-studio/build/UI/obs-frontend-api/Release)
else()
include_directories(../../UI/obs-frontend-api)
endif()
find_package(Qt5Widgets REQUIRED)
set(active-scene-dock_SOURCES
active-scene-dock.cpp
ActiveSceneDock.hpp ActiveSceneDock.cpp)
add_library(active-scene-dock MODULE
${active-scene-dock_SOURCES})
set_target_properties(active-scene-dock PROPERTIES PREFIX "")
target_link_libraries(active-scene-dock
Qt5::Widgets
libobs
obs-frontend-api)
IF(BUILD_OUT_OF_TREE)
install(TARGETS active-scene-dock
LIBRARY
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins)
install(DIRECTORY data/locale
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/${CMAKE_PROJECT_NAME})
else()
install_obs_plugin_with_data(active-scene-dock data)
endif()