Use feature 'required-binding'
[apps/agl-service-windowmanager-2017.git] / CMakeLists.txt
index ec3759b..e1cb0db 100644 (file)
@@ -79,16 +79,8 @@ set(SANITIZER_MODE "none" CACHE STRING "Build using a specific sanitizer (e.g. '
 
 set(LINK_LIBCXX OFF CACHE BOOL "Link against LLVMs libc++")
 
-add_subdirectory(libwindowmanager)
-add_subdirectory(scripts)
-add_subdirectory(src)
-
-configure_file(windowmanager.pc.in windowmanager.pc @ONLY)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/windowmanager.pc
-    DESTINATION
-    ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+# Add PolicyManager as plugin
+set(PLUGIN_PM policy_manager)
+add_subdirectory(${PLUGIN_PM})
 
-install(
-   FILES layers.json
-   DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/windowmanager
-   COMPONENT "runtime")
+add_subdirectory(src)