Skip to content

Commit 02248f3

Browse files
Create CMakeLists.txt
can use rapidjson and muduo
1 parent d44ec0c commit 02248f3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
3+
project(pro)
4+
5+
SET(CMAKE_CXX_FLAGS -pthread)
6+
find_package(RapidJSON REQUIRED)
7+
8+
include_directories(${RapidJSON_INCLUDE_DIR})
9+
include_directories(include)
10+
11+
link_directories("lib")
12+
13+
add_executable(testC test.cpp)
14+
15+
16+
target_link_libraries(testC ${RapidJSON_LIBS})
17+
target_link_libraries(testC libmuduo_net.a libmuduo_base.a)

0 commit comments

Comments
 (0)