mirror of
https://github.com/openharmony/third_party_cmake.git
synced 2026-07-21 08:15:27 -04:00
c8bc56b0c6
Signed-off-by: w00657280 <wuyuechang3@huawei.com>
11 lines
352 B
CMake
11 lines
352 B
CMake
# first we add the executable that generates the table
|
|
add_executable(MakeTable MakeTable.cxx)
|
|
target_link_libraries(MakeTable PRIVATE tutorial_compiler_flags)
|
|
|
|
# add the command to generate the source code
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
|
COMMAND MakeTable ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
|
DEPENDS MakeTable
|
|
)
|