Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
de037ea7
Commit
de037ea7
authored
Jul 16, 2012
by
Mathias Goldau
Browse files
[MERGE]
parents
8fb964d4
acaa58fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
tools/cmake/OpenWalnutUtils.cmake
tools/cmake/OpenWalnutUtils.cmake
+18
-14
No files found.
tools/cmake/OpenWalnutUtils.cmake
View file @
de037ea7
...
...
@@ -391,20 +391,24 @@ ENDFUNCTION( SETUP_CONFIGURED_FILE )
# _OTHERS you can add an arbitrary list of additional arguments which represent the files to copy.
FUNCTION
(
SETUP_ADDITIONAL_FILES _destination _component
)
FOREACH
(
_file
${
ARGN
}
)
FILE_TO_TARGETSTRING
(
${
_file
}
fileTarget
)
# add a copy target
ADD_CUSTOM_TARGET
(
CopyAdditionalFile_
${
fileTarget
}
_
${
_component
}
ALL
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
PROJECT_BINARY_DIR
}
/
${
_destination
}
/"
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
_file
}
"
"
${
PROJECT_BINARY_DIR
}
/
${
_destination
}
/"
COMMENT
"Copying file
${
_file
}
"
)
# add a INSTALL operation for this file
INSTALL
(
FILES
${
_file
}
DESTINATION
${
_destination
}
COMPONENT
${
_component
}
)
# only do if it exists
IF
(
EXISTS
${
OW_VERSION_FILENAME
}
)
# create useful target name
FILE_TO_TARGETSTRING
(
${
_file
}
fileTarget
)
# add a copy target
ADD_CUSTOM_TARGET
(
CopyAdditionalFile_
${
fileTarget
}
_
${
_component
}
ALL
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
PROJECT_BINARY_DIR
}
/
${
_destination
}
/"
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
_file
}
"
"
${
PROJECT_BINARY_DIR
}
/
${
_destination
}
/"
COMMENT
"Copying file
${
_file
}
"
)
# add a INSTALL operation for this file
INSTALL
(
FILES
${
_file
}
DESTINATION
${
_destination
}
COMPONENT
${
_component
}
)
ENDIF
()
ENDFOREACH
()
ENDFUNCTION
(
SETUP_ADDITIONAL_FILES
)
...
...
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