Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
luyikei
VLMC
Commits
cc66649a
Commit
cc66649a
authored
Mar 29, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsis: add some important files to the package.
This includes COPYING, AUTHORS, TRANSLATORS and NEWS.
parent
44afa94b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
nsis/CMakeLists.txt
nsis/CMakeLists.txt
+17
-9
No files found.
nsis/CMakeLists.txt
View file @
cc66649a
...
...
@@ -4,7 +4,9 @@ SET(NSIS_OUTPUT_FILE "${PROJECT_NAME}.exe")
# NSIS is only available for Win32 builds (native or cross compilation)
IF
(
WIN32
)
SET
(
NSIS_OUTPUT_DIR
"
${
CMAKE_BINARY_DIR
}
/bin/"
)
# Check contribs existence
IF
(
EXISTS
"
${
CMAKE_SOURCE_DIR
}
/contribs/"
)
...
...
@@ -12,26 +14,32 @@ IF(WIN32)
# Copy necessary libraries required at runtime
FILE
(
COPY
"
${
CMAKE_SOURCE_DIR
}
/contribs/bin/"
DESTINATION
"
${
CMAKE_BINARY_DIR
}
/bin/"
DESTINATION
${
NSIS_OUTPUT_DIR
}
FILES_MATCHING PATTERN
"*.dll"
)
# Copy some important files
CONFIGURE_FILE
(
"
${
CMAKE_SOURCE_DIR
}
/COPYING"
${
NSIS_OUTPUT_DIR
}
COPYONLY
)
CONFIGURE_FILE
(
"
${
CMAKE_SOURCE_DIR
}
/AUTHORS"
${
NSIS_OUTPUT_DIR
}
COPYONLY
)
CONFIGURE_FILE
(
"
${
CMAKE_SOURCE_DIR
}
/TRANSLATORS"
${
NSIS_OUTPUT_DIR
}
COPYONLY
)
CONFIGURE_FILE
(
"
${
CMAKE_SOURCE_DIR
}
/NEWS"
${
NSIS_OUTPUT_DIR
}
COPYONLY
)
MESSAGE
(
STATUS
"Configuring NSIS"
)
# Copy and configure the nsis script file
CONFIGURE_FILE
(
installer.nsi
"
${
CMAKE_BINARY
_DIR
}
/
bin/
installer.nsi"
@ONLY
)
CONFIGURE_FILE
(
installer.nsi
"
${
NSIS_OUTPUT
_DIR
}
/installer.nsi"
@ONLY
)
ADD_CUSTOM_TARGET
(
installer
${
CMAKE_COMMAND
}
-E remove
"
${
CMAKE_BINARY_DIR
}
/bin/
${
NSIS_OUTPUT_FILE
}
"
COMMAND makensis
"
${
CMAKE_BINARY
_DIR
}
/
bin/
installer.nsi"
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bin/
"
${
CMAKE_COMMAND
}
-E remove
"
${
NSIS_OUTPUT_DIR
}
${
NSIS_OUTPUT_FILE
}
"
COMMAND makensis
"
${
NSIS_OUTPUT
_DIR
}
/installer.nsi"
WORKING_DIRECTORY
"
${
NSIS_OUTPUT_DIR
}
"
)
ADD_DEPENDENCIES
(
installer vlmc
)
ELSE
(
EXISTS
"
${
CMAKE_SOURCE_DIR
}
/contribs/"
)
MESSAGE
(
WARNING
"Contribs not available, you won't be able to create an installer. Read INSTALL.win32 for details."
)
ENDIF
(
EXISTS
"
${
CMAKE_SOURCE_DIR
}
/contribs/"
)
ENDIF
(
WIN32
)
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