diff options
author | José Bollo <jose.bollo@iot.bzh> | 2015-12-22 17:25:45 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2015-12-22 17:29:38 +0100 |
commit | ce714369c64051d5307ef7ac9af2c53b6edfbb4a (patch) | |
tree | 1ec943646d8e43ccbadde88d1a165a7ea38ff31e /src/CMakeLists.txt | |
parent | e2f138ca6b0f61d1a1cde1fd305dd7f0aaf4aa0e (diff) |
refactoring and moving forward
Rename af-... files to afm-...
Add system daemon draft
Change-Id: I3f8b69ac9cc5af54be34b4ad11a512c57c0230b6
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f2d41bd..499d38a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,6 +16,8 @@ # limitations under the License. ########################################################################### +cmake_minimum_required(VERSION 2.8) + include(FindPkgConfig) pkg_check_modules(EXTRAS REQUIRED @@ -78,30 +80,30 @@ add_library(secwrp ) add_library(afm - af-db.c - af-launch.c - af-run.c + afm-db.c + afm-launch.c + afm-run.c ) add_executable(wgtpkg-sign wgtpkg-sign.c) target_link_libraries(wgtpkg-sign wgtpkg utils) - add_executable(wgtpkg-pack wgtpkg-pack.c) target_link_libraries(wgtpkg-pack wgtpkg utils) - add_executable(wgtpkg-info wgtpkg-info.c) target_link_libraries(wgtpkg-info wgtpkg wgt utils) - add_executable(wgtpkg-installer wgtpkg-installer.c) target_link_libraries(wgtpkg-installer wgtpkg wgt secwrp utils) - add_executable(afm-user-daemon afm-user-daemon.c) target_link_libraries(afm-user-daemon afm secwrp wgt utils) +add_executable(afm-system-daemon afm-system-daemon.c) +target_link_libraries(afm-system-daemon wgtpkg afm secwrp wgt utils) + install(TARGETS wgtpkg-sign wgtpkg-pack wgtpkg-info wgtpkg-installer DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) install(TARGETS afm-user-daemon DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) +install(TARGETS afm-system-daemon DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) |