Use generator expressions for target file
This commit is contained in:
parent
15255b553e
commit
f85224356b
@ -2,12 +2,6 @@ set(sample1 -1 sample1.ref sample1.bz2)
|
||||
set(sample2 -1 sample2.ref sample2.bz2)
|
||||
set(sample3 -1 sample3.ref sample3.bz2)
|
||||
|
||||
if(WIN32)
|
||||
set(BZIP2_EXE "$<CONFIG>/bzip2.exe")
|
||||
else()
|
||||
set(BZIP2_EXE bzip2)
|
||||
endif()
|
||||
|
||||
foreach(TEST
|
||||
"${sample1}"
|
||||
"${sample2}"
|
||||
@ -21,7 +15,7 @@ foreach(TEST
|
||||
COMMAND ${Python3_EXECUTABLE}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/runtest.py
|
||||
--mode compress
|
||||
${CMAKE_BINARY_DIR}/${BZIP2_EXE}
|
||||
$<TARGET_FILE:bzip2>
|
||||
${block_size}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${file_name}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${zip_name}
|
||||
@ -40,7 +34,7 @@ list(GET TEST 1 file_name)
|
||||
COMMAND ${Python3_EXECUTABLE}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/runtest.py
|
||||
--mode decompress
|
||||
${CMAKE_BINARY_DIR}/${BZIP2_EXE}
|
||||
$<TARGET_FILE:bzip2>
|
||||
${block_size}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${file_name}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user