Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TCP Protocol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BIAS
Receivers
TCP Protocol
Commits
d1810162
Commit
d1810162
authored
2 years ago
by
Valerio Pastore
Browse files
Options
Downloads
Patches
Plain Diff
build static
parent
6b1237f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+11
-1
11 additions, 1 deletion
CMakeLists.txt
with
11 additions
and
1 deletion
CMakeLists.txt
+
11
−
1
View file @
d1810162
...
...
@@ -3,6 +3,8 @@ project(TCP_Protocol)
set
(
CMAKE_CXX_EXTENSIONS OFF
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -std=c++20"
)
option
(
TCPPROTOCOL_BUILD_SHARED
"Build tcpprotocol as a shared library."
OFF
)
set
(
SOURCES
src/TCP_Protocol.cpp
...
...
@@ -13,7 +15,15 @@ set(SOURCES
add_subdirectory
(
deps/Base-DAQ EXCLUDE_FROM_ALL
)
# target
add_library
(
TCPProtocol
${
SOURCES
}
)
if
(
TCPPROTOCOL_BUILD_SHARED
)
message
(
STATUS
"Build will generate a shared library. "
"Use TCPPROTOCOL_BUILD_SHARED=0 to perform a static build"
)
set
(
TCPPROTOCOL_LIBRARY_TYPE SHARED
)
else
()
message
(
STATUS
"Build will generate a static library."
)
set
(
TCPPROTOCOL_LIBRARY_TYPE STATIC
)
endif
()
add_library
(
TCPProtocol
${
TCPPROTOCOL_LIBRARY_TYPE
}
${
SOURCES
}
)
# include files
set
(
INC_DIR
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment