SET_RESOURCE_URI_FROM_JSON(SANDBOX_RESOURCE_URI resources.json) IF (SANDBOX_RESOURCE_URI != "") ENABLE(PREBUILT) PREBUILT_PROGRAM() DECLARE_EXTERNAL_RESOURCE(PROTOC ${SANDBOX_RESOURCE_URI}) PRIMARY_OUTPUT(${PROTOC_RESOURCE_GLOBAL}/protoc${MODULE_SUFFIX}) END() ELSE() PROGRAM(protoc) SRCS(main.c) END() ENDIF()