当前位置:网站首页>Cmake simple usage
Cmake simple usage
2022-06-23 01:39:00 【For financial freedom!】
cmake_minimum_required(VERSION 3.0)
project(main)
# Configure compile options
set(CMAKE_CXX_FLAGS ${
CMAKE_CXX_FLAGS} -g)
# Set the list of source files to compile
set(SRC_LIST ./muduo_server.cpp)#aux_source_directory(.SRC_LIST) Put all source file names in the current directory SRC_LIST in
# Set the path where the executable file is finally stored
set(EXECUTABLE_OUTPUT_PATH ${
PROJECT_SOURCE_DIR}/bin)
# adopt muduo_server.cpp Generate server Executable file
add_executable(server ${
SRC_LIST})
# Express server This object program , Connection required muduo_net muduo_base pthread These three library files
target_link_libraries(server muduo_net muduo_base pthread)

边栏推荐
- Lexical Sign Sequence
- [hdu] p1466 calculate the number of intersections of straight lines
- C#.NET万能数据库访问封装类(ACCESS、SQLServer、Oracle)
- Template specialization template <>
- [launch] redis Series 2: data persistence to improve availability
- Zabbix5 series - use temperature and humidity sensor to monitor the temperature and humidity of the machine room (XX)
- JS prevent the PC side from copying correct links
- [22 summer reconstruction 1] codeworks round 791 (Div. 2)
- Phantomjs Usage Summary
- Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
猜你喜欢

2D prefix and

Overview of visual object detection technology based on deep learning

E-R图

3D打印微组织

Error reported when compiling basalt

fatal: refusing to merge unrelated histories

SQL programming task03 job - more complex query

Webdriver and selenium Usage Summary

SQL programming task04 job - set operation

B tree and b+ tree
随机推荐
Learn the specific technical learning experience of designing reusable software from the three levels of class, API and framework
Use of higher order functions
Prevent others from using the browser to debug
Debian10 configuring rsyslog+loganalyzer log server
Development status of full color LED display
How are pub and sub connected in ros1?
C language student achievement ranking system
Time complexity
Is it safe for Hongyuan futures to open an account? Can Hongyuan futures company reduce the handling fee?
Node fetch download file
Autumn move script a
Binary String
ERROR { err: YAMLException: end of the stream or a document separator is expected at line 6, colum
Debian10 LVM logical volumes
E-R diagram
LeetCode 206. Reverse linked list (iteration + recursion)
[luogu] p1083 [noip2012 improvement group] classroom borrowing (difference)
Template specialization template <>
总体标准差和样本标准差
Vector 2 (friend and copy construction)