Changeset View
Changeset View
Standalone View
Standalone View
src/univalue/CMakeLists.txt
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
# Generate lib/univalue_escapes.h | # Generate lib/univalue_escapes.h | ||||
include(NativeExecutable) | include(NativeExecutable) | ||||
add_native_executable(univalue_gen gen/gen.cpp) | add_native_executable(univalue_gen gen/gen.cpp) | ||||
native_target_include_directories(univalue_gen PUBLIC include) | native_target_include_directories(univalue_gen PUBLIC include) | ||||
# Custom target to regenerate univalue_escapes.h | # Custom target to regenerate univalue_escapes.h | ||||
add_custom_target(generate_univalue_escapes_h | add_custom_target(generate_univalue_escapes_h | ||||
COMMAND univalue_gen > ${CMAKE_CURRENT_SOURCE_DIR}/lib/univalue_escapes.h | COMMAND univalue_gen > ${CMAKE_CURRENT_SOURCE_DIR}/lib/univalue_escapes.h | ||||
DEPENDS univalue_gen | |||||
) | ) |