Add missing dependency to tzplatform
[platform/core/security/security-manager.git] / src / cmd / CMakeLists.txt
index d588676..70556c6 100644 (file)
@@ -1,3 +1,8 @@
+PKG_CHECK_MODULES(CMD_DEP
+    REQUIRED
+    libtzplatform-config
+    )
+
 FIND_PACKAGE(Boost REQUIRED COMPONENTS program_options)
 
 INCLUDE_DIRECTORIES(SYSTEM
@@ -24,7 +29,20 @@ SET_TARGET_PROPERTIES(${TARGET_CMD}
 TARGET_LINK_LIBRARIES(${TARGET_CMD}
     ${TARGET_COMMON}
     ${TARGET_CLIENT}
+    ${CMD_DEP_LIBRARIES}
     ${Boost_LIBRARIES}
     )
 
 INSTALL(TARGETS ${TARGET_CMD} DESTINATION ${BIN_INSTALL_DIR})
+
+INSTALL(FILES
+    50_security-manager-add.post
+    DESTINATION
+    /etc/gumd/useradd.d
+)
+
+INSTALL(FILES
+    50_security-manager-remove.pre
+    DESTINATION
+    /etc/gumd/userdel.d
+)