Commit 0d9668ae by 刘帅

CMake支持

parent 9ebb853d
...@@ -6,5 +6,5 @@ ipch/ ...@@ -6,5 +6,5 @@ ipch/
*.user *.user
*.filters *.filters
*.db *.db
*.txt *.opensdf
*.opensdf build/
\ No newline at end of file \ No newline at end of file
#指定cmake版本
cmake_minimum_required(VERSION 3.2)
#指定项目的名称,一般和项目的文件夹名称对应
PROJECT(FreemudAPI)
SET(SRC_LIST FreemudAPI.cpp
FreemudAPI.rc
resource.h
socketHeader.h
send.h
recv.h
fm_tool.h
fmerror.h
stdafx.cpp
FreemudAPI.def
dllmain.cpp
targetver.h
)
#头文件目录
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/
)
message(${CMAKE_CURRENT_SOURCE_DIR})
ADD_LIBRARY(FreemudAPI SHARED ${SRC_LIST})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment