Changeset View
Changeset View
Standalone View
Standalone View
test/CMakeLists.txt
Show All 18 Lines | |||||
endif() | endif() | ||||
# Create build ini file | # Create build ini file | ||||
configure_file(config.ini.in config.ini @ONLY) | configure_file(config.ini.in config.ini @ONLY) | ||||
### | ### | ||||
# Setup symlinks for testing | # Setup symlinks for testing | ||||
### | ### | ||||
macro(make_link src dest) | macro(make_link src dest) | ||||
add_custom_command( | add_custom_command( | ||||
OUTPUT "${dest}" | OUTPUT "${dest}" | ||||
COMMAND ${CMAKE_COMMAND} -E create_symlink "${src}" "${dest}" | COMMAND ${CMAKE_COMMAND} -E create_symlink "${src}" "${dest}" | ||||
COMMENT "make_link ${src} -> ${dest}" | COMMENT "make_link ${src} -> ${dest}" | ||||
MAIN_DEPENDENCY "${src}" | MAIN_DEPENDENCY "${src}" | ||||
) | ) | ||||
endmacro() | endmacro() | ||||
Show All 33 Lines | add_custom_target(check-bitcoin-util | ||||
COMMAND | COMMAND | ||||
./util/bitcoin-util-test.py | ./util/bitcoin-util-test.py | ||||
DEPENDS | DEPENDS | ||||
../src/bitcoin-tx | ../src/bitcoin-tx | ||||
${CMAKE_CURRENT_BINARY_DIR}/util/bitcoin-util-test.py | ${CMAKE_CURRENT_BINARY_DIR}/util/bitcoin-util-test.py | ||||
) | ) | ||||
add_dependencies(check check-bitcoin-util) | add_dependencies(check check-bitcoin-util) | ||||
endif() | endif() | ||||
No newline at end of file |