Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Jupiteapot
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam Štěpánek
Jupiteapot
Commits
c6a5ea65
There was an error fetching the commit references. Please try again later.
Commit
c6a5ea65
authored
5 years ago
by
Adam Štěpánek
Browse files
Options
Downloads
Patches
Plain Diff
Fix resource conficts in CMakeLists
parent
34d7610b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+3
-2
3 additions, 2 deletions
CMakeLists.txt
with
3 additions
and
2 deletions
CMakeLists.txt
+
3
−
2
View file @
c6a5ea65
...
...
@@ -115,6 +115,7 @@ target_include_directories(final
function
(
copy_resources SUBDIR GLOB
)
set
(
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SUBDIR
}
)
set
(
TARGET_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
SUBDIR
}
)
set
(
INDEX 0
)
file
(
GLOB_RECURSE RESOURCES RELATIVE
${
SOURCE_DIR
}
${
SOURCE_DIR
}
/
${
GLOB
}
)
foreach
(
RESOURCE
${
RESOURCES
}
)
set
(
ORIG
${
SOURCE_DIR
}
/
${
RESOURCE
}
)
...
...
@@ -127,8 +128,8 @@ function(copy_resources SUBDIR GLOB)
${
ORIG
}
${
COPY
}
)
get_filename_component
(
RESOURCE_NAME
${
RESOURCE
}
NAME
)
add_custom_target
(
copy-
${
RESOURCE_NAME
}
ALL DEPENDS
${
ORIG
}
${
COPY
}
)
add_custom_target
(
${
SUBDIR
}
-
${
INDEX
}
ALL DEPENDS
${
ORIG
}
${
COPY
}
)
math
(
EXPR INDEX
"
${
INDEX
}
+1"
)
endforeach
()
endfunction
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment