Browse Source

Add a function to get file size

master
Gavin Howard 4 years ago
parent
commit
4ba209ca68
Signed by: gavin GPG Key ID: C08038BDF280D33E
  1. 7
      functions.cmake

7
functions.cmake

@ -84,6 +84,13 @@ function(create_symlink link target)
endfunction(create_symlink)
function(file_size var filename)
file(READ "${filename}" content HEX)
string(LENGTH "${content}" content_length)
math(EXPR content_length "${content_length} / 2")
set(${var} ${content_length} PARENT_SCOPE)
endfunction()
function(static_lib_path var lib_output_name)
# Build the path.

Loading…
Cancel
Save