Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
211
Issues
211
List
Boards
Labels
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
2797a508
Commit
2797a508
authored
Apr 30, 2018
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PKG: also parse ITK targets
parent
7235a62e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
Packaging/prepare_file_list.cmake
Packaging/prepare_file_list.cmake
+11
-0
Packaging/process_file_recurse.cmake
Packaging/process_file_recurse.cmake
+6
-1
No files found.
Packaging/prepare_file_list.cmake
View file @
2797a508
...
...
@@ -90,6 +90,17 @@ function(prepare_file_list file_list_result)
endif
()
endforeach
()
# find ITK targets
set
(
_itk_targets_path
"
${
SUPERBUILD_INSTALL_DIR
}
/lib/cmake/ITK-
${
PKG_ITK_SB_VERSION
}
"
)
file
(
GLOB _itk_targets_config_files
"
${
_itk_targets_path
}
/ITKTargets-*.cmake"
)
foreach
(
f
${
_itk_targets_config_files
}
)
file
(
STRINGS
${
f
}
_f_content REGEX
" IMPORTED_LOCATION_[A-Z]+ "
)
string
(
REGEX REPLACE
" +IMPORTED_LOCATION_[A-Z]+
\"
([^
\"
]+)
\"
"
"
\\
1;"
_filtered
${
_f_content
}
)
string
(
CONFIGURE
"
${
_filtered
}
"
_configured
)
list
(
APPEND file_list
"
${
_configured
}
"
)
endforeach
()
# special case for msvc: ucrtbase.dll must be explicitly vetted.
# for proj.dll, see Mantis-1424
# libEGL needed by Qt 5 at runtime
...
...
Packaging/process_file_recurse.cmake
View file @
2797a508
...
...
@@ -43,6 +43,12 @@ function(process_file_recurse input_file)
message
(
FATAL_ERROR
"
${
input_file
}
not found. searched in
${
PKG_SEARCHDIRS
}
"
)
endif
()
get_filename_component
(
bn_name
${
input_file_full_path
}
NAME
)
if
(
${
bn_name
}
_RESOLVED
)
# item already resolved
return
()
endif
()
if
(
NOT PKG_DEBUG
)
message
(
"Processing
${
input_file_full_path
}
"
)
endif
()
...
...
@@ -67,7 +73,6 @@ function(process_file_recurse input_file)
string
(
REPLACE
";"
"
\\
;"
candidates
"
${
loader_ov
}
"
)
string
(
REPLACE
"
\n
"
"
${
LOADER_REGEX_EOL
}
;"
candidates
"
${
candidates
}
"
)
get_filename_component
(
bn_name
${
input_file_full_path
}
NAME
)
set
(
${
bn_name
}
_USED TRUE CACHE INTERNAL
""
)
if
(
PKG_DEBUG
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment