X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffstools.git;a=blobdiff_plain;f=CMakeLists.txt;h=04d9470e32ac7a4b44e5386a744a72bdd82f8572;hp=e7a97db4f8d155b7c4e4d75ac667733264655457;hb=a19f2b3c212888734c007e9f57b4e3c470620594;hpb=c8c2aa3df24542a729129753d4b58e9e5027a288 diff --git a/CMakeLists.txt b/CMakeLists.txt index e7a97db..04d9470 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(fs-tools C) -ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) +ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-error=format-truncation) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") @@ -56,12 +56,16 @@ INSTALL(TARGETS mount_root RUNTIME DESTINATION sbin) find_library(json NAMES json-c json) +ADD_EXECUTABLE(blockd blockd.c) +TARGET_LINK_LIBRARIES(blockd fstools ubus blobmsg_json ${json}) +INSTALL(TARGETS blockd RUNTIME DESTINATION sbin) + ADD_EXECUTABLE(block block.c probe.c probe-libblkid.c) IF(DEFINED CMAKE_UBIFS_EXTROOT) ADD_DEFINITIONS(-DUBIFS_EXTROOT) - TARGET_LINK_LIBRARIES(block blkid-tiny dl uci ubox blobmsg_json ubi-utils ${json}) + TARGET_LINK_LIBRARIES(block blkid-tiny dl uci ubox ubus blobmsg_json ubi-utils ${json}) ELSE(DEFINED CMAKE_UBIFS_EXTROOT) - TARGET_LINK_LIBRARIES(block blkid-tiny dl uci ubox blobmsg_json ${json}) + TARGET_LINK_LIBRARIES(block blkid-tiny dl uci ubox ubus blobmsg_json ${json}) ENDIF(DEFINED CMAKE_UBIFS_EXTROOT) INSTALL(TARGETS block RUNTIME DESTINATION sbin)