You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
622 B
22 lines
622 B
set(dir ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(tarball ${dir}/SrcSymlinks-0.1-Source.tar.gz)
|
|
set(extrdir ${dir}/SrcSymlinks-0.1-Source)
|
|
|
|
message(STATUS "Extracting ${tarball} in ${dir}...")
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ${tarball}
|
|
RESULT_VARIABLE result
|
|
OUTPUT_VARIABLE output
|
|
ERROR_VARIABLE output
|
|
WORKING_DIRECTORY ${dir})
|
|
message(STATUS "result='${result}'")
|
|
message(STATUS "output='${output}'")
|
|
|
|
if(NOT ${result} EQUAL 0)
|
|
message(FATAL_ERROR "Cannot unpack source tarball")
|
|
endif()
|
|
|
|
if(NOT EXISTS ${extrdir}/dirlink/src.h)
|
|
message(FATAL_ERROR "${extrdir}/dirlink/src.h not found")
|
|
endif()
|