You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
325 B
16 lines
325 B
cmake_minimum_required(VERSION 3.5)
|
|
project(try_compile_mfc)
|
|
|
|
set(files
|
|
stdafx.cpp
|
|
stdafx.h
|
|
)
|
|
|
|
set(CMAKE_MFC_FLAG "2")
|
|
|
|
# VS generators add this automatically based on the CMAKE_MFC_FLAG value,
|
|
# but generators matching "Make" require:
|
|
add_definitions(-D_AFXDLL)
|
|
|
|
add_executable(simplest_possible_mfc_exe WIN32 ${files})
|