Cmakelists.txt最后实现部分模板

add_definitions(-D_AFXDLL)
set(CMAKE_MFC_FLAG 2)
set(_src_files 
    ../CommInter/ProcessMutex.cpp
    ../CommInter/ProcessMutex.h
    ../CommInter/Thread.cpp
    ../CommInter/Thread.h
    ../ToolBox/OPini.cpp
    ../ToolBox/OPini.cpp
    resource.h 
    stdafx.cpp 
    stdafx.h 
    targetver.h 
    TMServer.cpp 
    TMServer.h 
    TMServerDlg.cpp 
    TMServerDlg.h
    )get

set(_tarName TMServer)
add_executable(${_tarName} WIN32 ${_src_files}  TMServer.rc)
target_link_libraries(${_tarName} 
    ManageModule
    StreamModule
    ) 
#use_msvc_pch(${_tarName} stdafx.h stdafx.cpp)
 it

相关文章
相关标签/搜索