| 1 |
add_executable(MakeTable) |
| 2 |
|
| 3 |
target_sources(MakeTable |
| 4 |
PRIVATE |
| 5 |
MakeTable.cxx |
| 6 |
) |
| 7 |
|
| 8 |
add_custom_command( |
| 9 |
OUTPUT SqrtTable.h |
| 10 |
COMMAND MakeTable SqrtTable.h |
| 11 |
DEPENDS MakeTable |
| 12 |
VERBATIM |
| 13 |
) |
| 14 |
|
| 15 |
add_custom_target(RunMakeTable DEPENDS SqrtTable.h) |
| 16 |
|
| 17 |
add_library(SqrtTable INTERFACE) |
| 18 |
|
| 19 |
target_sources(SqrtTable |
| 20 |
INTERFACE |
| 21 |
FILE_SET HEADERS |
| 22 |
BASE_DIRS |
| 23 |
${CMAKE_CURRENT_BINARY_DIR} |
| 24 |
FILES |
| 25 |
${CMAKE_CURRENT_BINARY_DIR}/SqrtTable.h |
| 26 |
) |
| 27 |
|
| 28 |
add_dependencies(SqrtTable RunMakeTable) |