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)