SET(SYSTEMD_UNIT_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/systemd/system")
ENDIF(NOT DEFINED SYSTEMD_UNIT_INSTALL_DIR)
+IF(NOT DEFINED PLUGIN_INSTALL_DIR)
+ SET(PLUGIN_INSTALL_DIR "${LIB_INSTALL_DIR}/dpm/plugins")
+ENDIF(NOT DEFINED PLUGIN_INSTALL_DIR)
+
ADD_DEFINITIONS(-DUG_WAYLAND)
ADD_SUBDIRECTORY(${DPM_PLUGIN})
%files
%manifest dpm-zone.manifest
%defattr(644,root,root,755)
-%attr(755,root,root) /opt/data/dpm/plugins/zone
+%attr(755,root,root) %{_libdir}/dpm/plugins/zone
%attr(755,root,root) %{_libdir}/libdpm-zone.so.%{version}
%{_libdir}/libdpm-zone.so.0
%cmake . -DVERSION=%{version} \
-DCMAKE_BUILD_TYPE=%{build_type} \
+ -DPLUGIN_INSTALL_DIR=%{_libdir}/dpm/plugins \
-DSCRIPT_INSTALL_DIR=%{_scriptdir} \
-DSYSTEMD_UNIT_INSTALL_DIR=%{_unitdir} \
-DDATA_INSTALL_DIR=%{TZ_SYS_DATA}/dpm \
INCLUDE_DIRECTORIES(SYSTEM ${PLUGIN_DEPS_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(${TARGET} ${PLUGIN_DEPS_LIBRARIES})
-INSTALL(FILES libdpm-plugin-zone.so RENAME zone DESTINATION /opt/data/dpm/plugins)
+INSTALL(FILES libdpm-plugin-zone.so RENAME zone DESTINATION ${PLUGIN_INSTALL_DIR})