mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: some fixes
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
# first we add the executable that generates the table
|
||||
add_executable(MakeTable MakeTable.cxx)
|
||||
|
||||
get_target_property(MakeTableLocation MakeTable LOCATION)
|
||||
|
||||
# add the command to generate the source code
|
||||
add_custom_command (
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
||||
DEPENDS MakeTable
|
||||
COMMAND MakeTable
|
||||
COMMAND ${MakeTableLocation}
|
||||
ARGS ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user