Commit 9e8b3ae6 authored by Ben Boeckel's avatar Ben Boeckel

ParaViewMacros: support a symlink builddir

parent 69d4091b
......@@ -11,11 +11,10 @@
#------------------------------------------------------------------------------
FUNCTION(GENERATE_QT_RESOURCE_FROM_FILES resource_file resource_prefix file_list)
SET (pq_resource_file_contents "<RCC>\n <qresource prefix=\"${resource_prefix}\">\n")
GET_FILENAME_COMPONENT(current_directory ${resource_file} PATH)
FOREACH (resource ${file_list})
GET_FILENAME_COMPONENT(alias ${resource} NAME)
GET_FILENAME_COMPONENT(resource ${resource} ABSOLUTE)
FILE(RELATIVE_PATH resource "${current_directory}" "${resource}")
GET_FILENAME_COMPONENT(resource ${resource} REALPATH)
FILE(TO_NATIVE_PATH "${resource}" resource)
SET (pq_resource_file_contents
"${pq_resource_file_contents} <file alias=\"${alias}\">${resource}</file>\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment