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})

 

注:

未验证。。。后果自负

 

posted on 2019-03-07 22:58  cutepig  阅读(161)  评论(0编辑  收藏  举报

导航