Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
e34c8354
Commit
e34c8354
authored
Apr 28, 2004
by
Bill Hoffman
Browse files
BUG: fix for bug 121 add some docs for MFC flag
parent
a6b60841
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/MFCDialog/CMakeLists.txt
View file @
e34c8354
...
...
@@ -11,7 +11,13 @@ SET( SRCS
# add stuff to use MFC in this executable
ADD_DEFINITIONS
(
-D_AFXDLL
)
SET
(
CMAKE_MFC_FLAG 6
)
# Use of CMAKE_MFC_FLAG
# Values:
# 0: Use Standard Windows Libraries
# 1: Use MFC in a Static Library
# 2: Use MFC in a Shared DLL
SET
(
CMAKE_MFC_FLAG 2
)
ADD_EXECUTABLE
(
CMakeSetup WIN32
${
SRCS
}
)
TARGET_LINK_LIBRARIES
(
CMakeSetup CMakeLib
)
...
...
Source/cmAddExecutableCommand.h
View file @
e34c8354
...
...
@@ -69,6 +69,11 @@ public:
"After specifying the executable name, WIN32 and/or MACOSX_BUNDLE can "
"be specified. WIN32 indicates that the executable (when compiled on "
"windows) is a windows app (using WinMain) not a console app (using main). "
"The variable CMAKE_MFC_FLAG be used if the windows app uses MFC. "
"This variable can be set to the following values:
\n
"
" 0: Use Standard Windows Libraries
\n
"
" 1: Use MFC in a Static Library
\n
"
" 2: Use MFC in a Shared DLL
\n
"
"MACOSX_BUNDLE indicates that when build on Mac OSX, executable should "
"be in the bundle form. The MACOSX_BUNDLE also allows several variables "
"to be specified:
\n
"
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment