助力高校计算机教育 —— 码云为老师推出免费高校版,高达 200 人的协作团队
Watch Star Fork

RonxBulld / ftrpcC++GPL-3.0

CMakeLists.txt 1.24 KB · 1 Lines
一键复制 编辑 原始数据 标准视图 历史
1 cmake_minimum_required(VERSION 3.5)
2 project(ftrpc)
3
4 set(CMAKE_CXX_STANDARD 17)
5 set(CMAKE_CXX_FLAGS -std=c++17)
6
7 IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
8 ADD_CUSTOM_COMMAND(OUTPUT copy_res
9 COMMAND xcopy $(CMAKE_SOURCE_DIR)\\template .\\template /e/h/y/i
10 COMMAND copy $(CMAKE_SOURCE_DIR)\\License.txt .\\License.txt
11 COMMAND copy $(CMAKE_SOURCE_DIR)\\sample\\test.idl .\\test.idl
12 )
13 add_custom_target(CopyTask ALL DEPENDS copy_res)
14 ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
15 ADD_CUSTOM_COMMAND(OUTPUT copy_res
16 COMMAND cp -a $(CMAKE_SOURCE_DIR)/template ./template
17 COMMAND cp $(CMAKE_SOURCE_DIR)/License.txt ./License.txt
18 COMMAND cp $(CMAKE_SOURCE_DIR)/sample/test.idl ./test.idl
19 #COMMAND sed -i '/\/\* SED REMOVE/,/!SED REMOVE\*\//d' ./template/typescript/caller.tpl.ts
20 )
21 add_custom_target(CopyTask ALL DEPENDS copy_res)
22 ENDIF(CMAKE_SYSTEM_NAME MATCHES "Windows")
23
25 lex.cpp lex.h keywords.h parser.cpp parser.h ast_tree.h TypeDef.h symman.cpp symman.h
26 jsoncpp.cpp Gen/GenCPP.cpp Gen/GenCPP.h Gen/GenUtils.cpp Gen/GenUtils.h Gen/GenTS.cpp Gen/GenTS.h
10_float_left_people 10_float_left_close