FIND_LIBRARY(json NAMES json-c json)
IF(UCERT_HOST_BUILD)
-ADD_DEFINITIONS(-DUCERT_HOST_BUILD)
+ ADD_DEFINITIONS(-DUCERT_HOST_BUILD)
ENDIF()
IF(USE_RPATH)
-SET(CMAKE_INSTALL_RPATH "${USE_RPATH}")
-SET(CMAKE_MACOSX_RPATH 1)
+ SET(CMAKE_INSTALL_RPATH "${USE_RPATH}")
+ SET(CMAKE_MACOSX_RPATH 1)
ENDIF()
ADD_EXECUTABLE(ucert ucert.c usign-exec.c)
IF(UCERT_FULL)
-ADD_DEFINITIONS(-DUCERT_FULL)
-TARGET_LINK_LIBRARIES(ucert ${ubox} ${blobmsg_json} ${json})
+ ADD_DEFINITIONS(-DUCERT_FULL)
+ TARGET_LINK_LIBRARIES(ucert ${ubox} ${blobmsg_json} ${json})
ELSE()
-ADD_DEFINITIONS(-DUCERT_STRIP_MESSAGES)
-TARGET_LINK_LIBRARIES(ucert ${ubox})
+ ADD_DEFINITIONS(-DUCERT_STRIP_MESSAGES)
+ TARGET_LINK_LIBRARIES(ucert ${ubox})
ENDIF()
INSTALL(TARGETS ucert RUNTIME DESTINATION bin)