File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ function(gen_str_catalog)
10
10
VERSION
11
11
GUID_ID
12
12
GUID_MASK
13
- MODULE_ID_MAX)
13
+ MODULE_ID_MAX
14
+ OUTPUTS_TARGET)
14
15
set (multiValueArgs INPUT_JSON INPUT_LIBS INPUT_HEADERS STABLE_JSON)
15
16
cmake_parse_arguments (SC "${options} " "${oneValueArgs} " "${multiValueArgs} "
16
17
${ARGN} )
@@ -87,4 +88,9 @@ function(gen_str_catalog)
87
88
add_library (${SC_OUTPUT_LIB} STATIC ${SC_OUTPUT_CPP} )
88
89
target_link_libraries (${SC_OUTPUT_LIB} PUBLIC cib)
89
90
endif ()
91
+ if (SC_OUTPUTS_TARGET)
92
+ add_custom_target (
93
+ ${SC_OUTPUTS_TARGET} DEPENDS ${SC_OUTPUT_CPP} ${SC_OUTPUT_XML}
94
+ ${SC_OUTPUT_JSON} )
95
+ endif ()
90
96
endfunction ()
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ gen_str_catalog(
38
38
GUID_ID
39
39
"01234567-89ab-cdef-0123-456789abcdef"
40
40
GUID_MASK
41
- "ffffffff-ffff-ffff-ffff-ffffffffffff" )
41
+ "ffffffff-ffff-ffff-ffff-ffffffffffff"
42
+ OUTPUTS_TARGET
43
+ test_catalog_json)
42
44
43
45
add_library (catalog_strings STATIC ${CMAKE_CURRENT_BINARY_DIR} /strings .cpp)
44
46
target_link_libraries (catalog_strings PUBLIC cib)
You can’t perform that action at this time.
0 commit comments