Revert "Add policy table generated by ZIPC for EXAMPLE"
[apps/agl-service-windowmanager-2017.git] / CMakeLists.txt
index ec3759b..92ee691 100644 (file)
@@ -79,16 +79,16 @@ 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)
+# Set name of PolicyManager and STM
+set(PLUGIN_PM policy_manager)
+set(USE_STM_NAME stub)
+
+# Add STM
+add_subdirectory(src/${PLUGIN_PM}/stm/${USE_STM_NAME}/src)
+include_directories(src/${PLUGIN_PM}/stm/${USE_STM_NAME}/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
+add_subdirectory(src/${PLUGIN_PM})
+include_directories(src/${PLUGIN_PM})
 
-install(
-   FILES layers.json
-   DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/windowmanager
-   COMPONENT "runtime")
+add_subdirectory(src)