cmake/Help/variable/CMAKE_MFC_FLAG.rst

18 lines
411 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
CMAKE_MFC_FLAG
--------------
2019-11-11 23:01:05 +01:00
Use the MFC library for an executable or dll.
2014-08-03 19:52:23 +02:00
2019-11-11 23:01:05 +01:00
Enables the use of the Microsoft Foundation Classes (MFC).
It should be set to ``1`` for the static MFC library, and
``2`` for the shared MFC library. This is used in Visual Studio
project files.
2014-08-03 19:52:23 +02:00
2019-11-11 23:01:05 +01:00
Usage example:
.. code-block:: cmake
2014-08-03 19:52:23 +02:00
add_definitions(-D_AFXDLL)
set(CMAKE_MFC_FLAG 2)
add_executable(CMakeSetup WIN32 ${SRCS})