forked from zhuxibrian/ParserServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (20 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.5)
project(ParserServer)
set(CMAKE_CXX_STANDARD 11)
add_executable(ParserServer main.cpp
src/tcp/tcpServer.cpp src/tcp/tcpServer.h
src/util/log.hpp src/ServerManager/ServerManager.cpp
src/ServerManager/ServerManager.h include/global.h
include/xmlStructs.h src/Parser/lexer/Lexer.cpp src/Parser/lexer/Lexer.h
src/Parser/Parser.cpp src/Parser/Parser.h src/Parser/vm/Vm.cpp
src/Parser/vm/Vm.h src/robotStateServer/RobotStateServer.cpp
src/robotStateServer/RobotStateServer.h
src/Parser/vm/robot_state.h src/Parser/vm/robot_state.cpp include/endian.h src/Parser/xmlReader/XmlReader.cpp src/Parser/xmlReader/XmlReader.h src/util/StringUtil.hpp src/util/IntegerUtil.hpp src/util/memUtil.hpp)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.67.0 REQUIRED COMPONENTS log_setup log thread system filesystem)
#添加头文件搜索路径
include_directories(/usr/local/include)
#添加库文件搜索路径
link_directories(/usr/local/lib)
add_definitions(-D_DEBUG) # 宏定义 _DEBUG
target_link_libraries(ParserServer ${Boost_LIBRARIES} pthread)