Cmake for mfc example.

cmake_minimum_required(VERSION 2.8)

add_definitions(-D_AFXDLL)
set(CMAKE_MFC_FLAG 2)
set(SRCS
	MFCApplication1.cpp
	MFCApplication1.h
	MFCApplication1.rc
	MFCApplication1Dlg.cpp
	MFCApplication1Dlg.h
	Resource.h
	stdafx.cpp
	stdafx.h
	targetver.h
)

add_executable(CMakeSetup WIN32 ${SRCS})

 

注:

未验证。。。后果自负

 

Powered by Jekyll and Theme by solid

本站总访问量