Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PacketLib
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
Releases
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
Andrea Bulgarelli
PacketLib
Commits
2401d5be
Commit
2401d5be
authored
9 years ago
by
Andrea Zoli
Browse files
Options
Downloads
Patches
Plain Diff
Fix CMakeLists.txt
parent
7140154a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
src/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/CMakeLists.txt
with
3 additions
and
2 deletions
.gitignore
+
1
−
0
View file @
2401d5be
...
@@ -2,3 +2,4 @@ obj/*
...
@@ -2,3 +2,4 @@ obj/*
lib/*
lib/*
prefix
prefix
version
version
build/*
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
2
−
2
View file @
2401d5be
...
@@ -15,10 +15,10 @@ add_library(${PROJECT_NAME} SHARED ${SOURCES})
...
@@ -15,10 +15,10 @@ add_library(${PROJECT_NAME} SHARED ${SOURCES})
add_library
(
${
PROJECT_NAME
}
static STATIC
${
SOURCES
}
)
add_library
(
${
PROJECT_NAME
}
static STATIC
${
SOURCES
}
)
set_target_properties
(
${
PROJECT_NAME
}
static PROPERTIES OUTPUT_NAME
${
PROJECT_NAME
}
)
set_target_properties
(
${
PROJECT_NAME
}
static PROPERTIES OUTPUT_NAME
${
PROJECT_NAME
}
)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
target_link_libraries
(
${
PROJECT_NAME
}
${
LIBS
}
)
target_link_libraries
(
${
PROJECT_NAME
}
${
LIBS
}
-fPIC
)
# make install
# make install
file
(
GLOB HEADERS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
../include/*.h"
)
file
(
GLOB HEADERS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
../include/*.h"
)
install
(
FILES
${
HEADERS
}
DESTINATION include/packet
)
install
(
FILES
${
HEADERS
}
DESTINATION include/packet
)
install
(
TARGETS
${
PROJECT_NAME
}
DESTINATION lib
)
install
(
TARGETS
${
PROJECT_NAME
}
DESTINATION lib
)
install
(
TARGETS
${
PROJECT_NAME
}
static DESTINATION lib
)
install
(
TARGETS
${
PROJECT_NAME
}
static DESTINATION lib
)
...
...
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