22# compile_lib (NAME name
33# SOURCES <source> [<source> ...]
44# [FLAGS <flag> ...]
5+ # [DEFINITIONS <compiler macros> ...]
56# [INCLUDE_DIRECTORIES <paths> ...]
67# [STATIC_LIB])
78#
@@ -237,6 +238,7 @@ endfunction()
237238# test (NAME name
238239# [DEPENDENT_FOR target]
239240# [SOURCES <source> [<source> ...]
241+ # [DEFINITIONS <compiler macros> ...]
240242# [INCLUDE_DIRECTORIES <paths> ..])
241243#
242244# Produces test executable from the source files. Binary files so produced are placed in
@@ -287,13 +289,14 @@ endfunction()
287289# assemble_and_copy_bin (NAME name
288290# SOURCES <source> [<source> ...]
289291# [FLAGS <assembler flag> ...]
292+ # [DEFINITIONS <assembler macros> ...]
290293# [INCLUDE_DIRECTORIES <paths> ..])
291294#
292295# Compiles a assembly files using NASM then copies each object files to MOS_BIN_DIR.
293296# ==================================================================================================
294297function (assemble_and_copy_bin)
295298 set (oneValueArgs NAME )
296- set (multiValueArgs SOURCES FLAGS INCLUDE_DIRECTORIES )
299+ set (multiValueArgs SOURCES FLAGS INCLUDE_DIRECTORIES DEFINITIONS )
297300 set (options )
298301 cmake_parse_arguments (PARSE_ARGV 0 ASSEMBLE "${options} " "${oneValueArgs} " "${multiValueArgs} " )
299302
@@ -312,6 +315,7 @@ function(assemble_and_copy_bin)
312315 NAME ${INTERMEDIATE_BIN_NAME}
313316 SOURCES ${ASSEMBLE_SOURCES}
314317 FLAGS ${ASSEMBLE_FLAGS}
318+ DEFINITIONS ${ASSEMBLE_DEFINITIONS}
315319 INCLUDE_DIRECTORIES ${ASSEMBLE_INCLUDE_DIRECTORIES}
316320 )
317321 copy_object_file(
0 commit comments