CMAKE_MFC_FLAG.rst 411 B

1234567891011121314151617
  1. CMAKE_MFC_FLAG
  2. --------------
  3. Use the MFC library for an executable or dll.
  4. Enables the use of the Microsoft Foundation Classes (MFC).
  5. It should be set to ``1`` for the static MFC library, and
  6. ``2`` for the shared MFC library. This is used in Visual Studio
  7. project files.
  8. Usage example:
  9. .. code-block:: cmake
  10. add_definitions(-D_AFXDLL)
  11. set(CMAKE_MFC_FLAG 2)
  12. add_executable(CMakeSetup WIN32 ${SRCS})