Changeset View
Changeset View
Standalone View
Standalone View
src/test/CMakeLists.txt
# Copyright (c) 2018 The Bitcoin developers | # Copyright (c) 2018 The Bitcoin developers | ||||
project(bitcoin-test) | project(bitcoin-test) | ||||
# Process json files. | # Process json files. | ||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/data") | file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/data") | ||||
find_program(PYTHON python) | find_program(PYTHON python3) | ||||
function(gen_json_header NAME) | function(gen_json_header NAME) | ||||
set(HEADERS "") | set(HEADERS "") | ||||
foreach(f ${ARGN}) | foreach(f ${ARGN}) | ||||
set(h "${CMAKE_CURRENT_BINARY_DIR}/${f}.h") | set(h "${CMAKE_CURRENT_BINARY_DIR}/${f}.h") | ||||
# Get the proper name for the test variable. | # Get the proper name for the test variable. | ||||
get_filename_component(TEST_NAME ${f} NAME_WE) | get_filename_component(TEST_NAME ${f} NAME_WE) | ||||
add_custom_command(OUTPUT ${h} | add_custom_command(OUTPUT ${h} | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |