-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
55 lines (42 loc) · 1.19 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
project(better-projectors)
if(WIN32)
set(MODULE_DESCRIPTION "Better projectors for OBS")
endif()
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Core REQUIRED)
set(CMAKE_AUTOUIC ON)
if (NOT Qt5Widgets_FOUND OR NOT Qt5Core_FOUND)
message(FATAL_ERROR "Failed to find Qt5")
endif ()
set(better-projectors_UI
src/ui/window-add-projector.ui)
qt5_wrap_ui(better-projectors_UI_HEADERS ${better-projectors_UI})
set(better-projectors_SOURCES
src/plugin-main.cpp
src/projector-dock.cpp
src/projector-dock.hpp
src/projector-widget.cpp
src/projector-widget.hpp
src/better-projectors.cpp
src/better-projectors.hpp
src/platform.hpp
src/platform-windows.cpp
src/ui/window-add-projector.cpp
src/ui/window-add-projector.hpp
${better-projectors_UI_HEADERS})
add_library(better-projectors
MODULE
${better-projectors_SOURCES})
target_include_directories(better-projectors
PRIVATE
"../../UI/obs-frontend-api"
${CMAKE_CURRENT_BINARY_DIR}
${Qt5Widgets_INCLUDES}
${Qt5Core_INCLUDES})
target_link_libraries(better-projectors
libobs
obs-frontend-api
Qt5::Widgets
Qt5::Core)
set_target_properties(better-projectors PROPERTIES FOLDER "plugins")
install_obs_plugin(better-projectors)