Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
bbc4c569
Commit
bbc4c569
authored
Sep 07, 2008
by
f3nix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CMAKE_RC_COMPILER variable to mingw_resource_compiler macro.
parent
522621fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
MinGWResourceCompiler.cmake
CMakeModules/MinGWResourceCompiler.cmake
+8
-2
No files found.
CMakeModules/MinGWResourceCompiler.cmake
View file @
bbc4c569
...
@@ -5,6 +5,12 @@ macro(dbg_msg _MSG)
...
@@ -5,6 +5,12 @@ macro(dbg_msg _MSG)
endmacro
(
dbg_msg
)
endmacro
(
dbg_msg
)
macro
(
mingw_resource_compiler _NAME
)
macro
(
mingw_resource_compiler _NAME
)
# Resource compiler name.
if
(
NOT DEFINED CMAKE_RC_COMPILER
)
set
(
CMAKE_RC_COMPILER windres.exe
)
endif
(
NOT DEFINED CMAKE_RC_COMPILER
)
dbg_msg
(
"CMAKE_RC_COMPILER:
${
CMAKE_RC_COMPILER
}
"
)
# Input file.
# Input file.
set
(
_IN
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
_NAME
}
.rc"
)
set
(
_IN
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
_NAME
}
.rc"
)
dbg_msg
(
"_IN:
${
_IN
}
"
)
dbg_msg
(
"_IN:
${
_IN
}
"
)
...
@@ -20,13 +26,13 @@ macro(mingw_resource_compiler _NAME)
...
@@ -20,13 +26,13 @@ macro(mingw_resource_compiler _NAME)
endforeach
(
wx_include_dir
${
wxWidgets_INCLUDE_DIRS
}
)
endforeach
(
wx_include_dir
${
wxWidgets_INCLUDE_DIRS
}
)
dbg_msg
(
"_WINDRES_INCLUDE_DIRS:
${
_WINDRES_INCLUDE_DIRS
}
"
)
dbg_msg
(
"_WINDRES_INCLUDE_DIRS:
${
_WINDRES_INCLUDE_DIRS
}
"
)
# windres
.exe
arguments.
# windres arguments.
set
(
_ARGS
${
_WINDRES_INCLUDE_DIRS
}
-i
${
_IN
}
-o
${
_OUT
}
)
set
(
_ARGS
${
_WINDRES_INCLUDE_DIRS
}
-i
${
_IN
}
-o
${
_OUT
}
)
dbg_msg
(
"_ARGS:
${
_ARGS
}
"
)
dbg_msg
(
"_ARGS:
${
_ARGS
}
"
)
# Compile resource file.
# Compile resource file.
add_custom_command
(
OUTPUT
${
_OUT
}
add_custom_command
(
OUTPUT
${
_OUT
}
COMMAND
windres.exe
COMMAND
${
CMAKE_RC_COMPILER
}
ARGS
${
_ARGS
}
ARGS
${
_ARGS
}
COMMENT
"Compiling
${
_NAME
}
's resource file"
COMMENT
"Compiling
${
_NAME
}
's resource file"
VERBATIM
)
VERBATIM
)
...
...
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