summaryrefslogtreecommitdiff
path: root/Tests/MFC/try_compile/CMakeLists.txt
blob: 768d2a639a5e6ba5ac6a0cca40d47b78dd065b9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cmake_minimum_required(VERSION 2.8.12)
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})