CMakeLists.txt 325 B

123456789101112131415
  1. cmake_minimum_required(VERSION 2.8)
  2. project(try_compile_mfc)
  3. set(files
  4. stdafx.cpp
  5. stdafx.h
  6. )
  7. set(CMAKE_MFC_FLAG "2")
  8. # VS generators add this automatically based on the CMAKE_MFC_FLAG value,
  9. # but generators matching "Make" require:
  10. add_definitions(-D_AFXDLL)
  11. add_executable(simplest_possible_mfc_exe WIN32 ${files})