当前位置:网站首页>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)

边栏推荐
- 3D打印微组织
- MySQL-Seconds_ behind_ Master accuracy error
- SQL programming task02 job - basic query and sorting
- Overview of visual object detection technology based on deep learning
- Extend your kubernetes API using the aggregation API
- Ansible learning summary (8) -- Summary of ansible control right raising related knowledge
- Get the start and end dates of the current week
- 魔王冷饭||#099 魔王说西游;老板的本质;再答中年危机;专业选择
- ERROR { err: YAMLException: end of the stream or a document separator is expected at line 6, colum
- Extend your kubernetes API using the aggregation API
猜你喜欢

Template specialization template <>
![[hdu] P6964 I love counting](/img/ff/f8e79d28758c9bd3019816c8f46723.png)
[hdu] P6964 I love counting

Autumn move script B

Sfod: passive domain adaptation and upgrade optimization, making the detection model easier to adapt to new data

There are animation characters interacting with each other when the mouse slides in the web page

JMeter associated login 302 type interface

Module 8 job

LeetCode 206. 反转链表(迭代+递归)

E-R diagram

ERROR { err: YAMLException: end of the stream or a document separator is expected at line 6, colum
随机推荐
Vector 6 (inheritance)
[22 summer reconstruction 1] codeworks round 791 (Div. 2)
SQL programming task05 job -sql advanced processing
Debian10 create users, user groups, switch users
[template] KMP
Population standard deviation and sample standard deviation
Extend your kubernetes API using the aggregation API
[hdu] P7079 Pty loves lines
There is no corresponding change on the page after the code runs at the Chrome browser break point
Autumn move script B
SYSTEMd summary
07 project cost management
2D prefix and
Dual cross domain: access allow origin header contains multiple values "*, *", but only one is allowed
MySQL-Seconds_ behind_ Master accuracy error
Debian10 LVM logical volumes
Autumn move script a
Learn the specific technical learning experience of designing reusable software from the three levels of class, API and framework
Random decoding NLP
Download and compile ROS source code