CMake/Tests/MFC/try_compile/CMakeLists.txt
David Cole 0e598b7bcd Tests: Only really run MFC test if we can build MFC apps (#11213)
Avoid problems on "undetected" VS Express build environments.
2011-12-16 16:30:10 -05:00

16 lines
325 B
CMake

cmake_minimum_required(VERSION 2.8)
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})