a944afd061
GitOrigin-RevId: 2247d824fe07f16325596acc7faa286502faffd1
34 lines
1,021 B
Diff
34 lines
1,021 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index d116619..a1366ce 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1,6 +1,17 @@
|
|
+if (POLICY CMP0048)
|
|
+ cmake_policy(SET CMP0048 NEW)
|
|
+endif (POLICY CMP0048)
|
|
+
|
|
project(move-transition VERSION 2.0.2)
|
|
set(PROJECT_FULL_NAME "Move Transition")
|
|
|
|
+include(FindLibobs.cmake)
|
|
+find_package(LibObs REQUIRED)
|
|
+
|
|
+include_directories(
|
|
+ "${LIBOBS_INCLUDE_DIR}/../plugins/obs-transitions"
|
|
+ "${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api")
|
|
+
|
|
set(move-transition_HEADERS
|
|
move-transition.h
|
|
easing.h)
|
|
@@ -34,4 +45,10 @@ target_link_libraries(move-transition
|
|
libobs)
|
|
|
|
set_target_properties(move-transition PROPERTIES FOLDER "plugins/exeldro")
|
|
-install_obs_plugin_with_data(move-transition data)
|
|
+set_target_properties(move-transition PROPERTIES PREFIX "")
|
|
+
|
|
+install(TARGETS move-transition
|
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins)
|
|
+
|
|
+install(DIRECTORY data/locale/
|
|
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/move-transition/locale")
|