标签:shared visual dir share txt c项目 and nbsp tle
ADD_DEFINITIONS(-D_AFXDLL)
SET(CMAKE_MFC_FLAG 2)
ADD_EXECUTABLE(detect WIN32 ${DIR_SRCS})
CMAKE_MFC_FLAG参数的意思是这样解释的:
To use MFC, the CMAKE_MFC_FLAG variable must be set as follows:
0: Use Standard Windows Libraries
1: Use MFC in a Static Library
2: Use MFC in a Shared DLL
CMake构建Visual Studio中MFC项目的MFC配置问题
标签:shared visual dir share txt c项目 and nbsp tle
原文地址:https://www.cnblogs.com/leoking01/p/13444201.html