@@ -9,11 +9,19 @@ endif()
99
1010target_link_libraries (pico_binary_info INTERFACE pico_binary_info_headers)
1111
12+ # pico_set_program_name(TARGET name)
13+ # \brief\ Set the program name for the target
14+ #
15+ # \param\ name The program name to set
1216function (pico_set_program_name TARGET name )
1317 # PICO_BUILD_DEFINE: PICO_PROGRAM_NAME, value passed to pico_set_program_name, type=string, group=pico_binary_info
1418 target_compile_definitions (${TARGET} PRIVATE -DPICO_PROGRAM_NAME="${name} " )
1519endfunction ()
1620
21+ # pico_set_program_description(TARGET description)
22+ # \brief\ Set the program description for the target
23+ #
24+ # \param\ description The program description to set
1725function (pico_set_program_description TARGET description)
1826 # since this is the command line, we will remove newlines
1927 string (REPLACE "\n " " " description ${description} )
@@ -22,11 +30,19 @@ function(pico_set_program_description TARGET description)
2230 target_compile_definitions (${TARGET} PRIVATE -DPICO_PROGRAM_DESCRIPTION="${description} " )
2331endfunction ()
2432
33+ # pico_set_program_url(TARGET url)
34+ # \brief\ Set the program URL for the target
35+ #
36+ # \param\ url The program URL to set
2537function (pico_set_program_url TARGET url)
2638 # PICO_BUILD_DEFINE: PICO_PROGRAM_URL, value passed to pico_set_program_url, type=string, group=pico_binary_info
2739 target_compile_definitions (${TARGET} PRIVATE -DPICO_PROGRAM_URL="${url} " )
2840endfunction ()
2941
42+ # pico_set_program_version(TARGET version)
43+ # \brief\ Set the program version for the target
44+ #
45+ # \param\ version The program version to set
3046function (pico_set_program_version TARGET version )
3147 # PICO_BUILD_DEFINE: PICO_PROGRAM_VERSION_STRING, value passed to pico_set_program_version, type=string, group=pico_binary_info
3248 target_compile_definitions (${TARGET} PRIVATE -DPICO_PROGRAM_VERSION_STRING="${version} " )
0 commit comments