X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=92ee691387b7fc6b438b2d9896ab77cc15bffa92;hb=e4222ca8da3b02afca5625fa2cef6832aa8ce90e;hp=ec3759b0fad4a7cf50f9dff3d83ef6fa6a30bf90;hpb=074d058a7a483a66af7f8c0b928b321ad483f47c;p=apps%2Fagl-service-windowmanager-2017.git diff --git a/CMakeLists.txt b/CMakeLists.txt index ec3759b..92ee691 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)