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
281529a1
Commit
281529a1
authored
10 years ago
by
Andrea Zoli
Browse files
Options
Downloads
Patches
Plain Diff
Fix src/CMakeLists.txt to work from a different source rootdir.
parent
815e82ed
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CMakeLists.txt
+9
-9
9 additions, 9 deletions
src/CMakeLists.txt
with
9 additions
and
9 deletions
src/CMakeLists.txt
+
9
−
9
View file @
281529a1
...
@@ -10,17 +10,17 @@ set(SOURCES ByteStream.cpp File.cpp InputPacketStream.cpp InputTextFile.cpp Outp
...
@@ -10,17 +10,17 @@ set(SOURCES ByteStream.cpp File.cpp InputPacketStream.cpp InputTextFile.cpp Outp
lz4.c lz4hc.c
)
lz4.c lz4hc.c
)
# libpacket.a and libpacket.so
# libpacket.a and libpacket.so
include_directories
(
${
CMAKE_SOURCE_DIR
}
/include
)
include_directories
(
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/
../
include
)
add_library
(
${
CMAKE_
PROJECT_NAME
}
SHARED
${
SOURCES
}
)
add_library
(
${
PROJECT_NAME
}
SHARED
${
SOURCES
}
)
add_library
(
${
CMAKE_
PROJECT_NAME
}
static STATIC
${
SOURCES
}
)
add_library
(
${
PROJECT_NAME
}
static STATIC
${
SOURCES
}
)
set_target_properties
(
${
CMAKE_
PROJECT_NAME
}
static PROPERTIES OUTPUT_NAME
${
CMAKE_
PROJECT_NAME
}
)
set_target_properties
(
${
PROJECT_NAME
}
static PROPERTIES OUTPUT_NAME
${
PROJECT_NAME
}
)
set_target_properties
(
${
CMAKE_
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
set_target_properties
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
target_link_libraries
(
${
CMAKE_
PROJECT_NAME
}
${
LIBS
}
)
target_link_libraries
(
${
PROJECT_NAME
}
${
LIBS
}
)
# make install
# make install
file
(
GLOB HEADERS
"
${
PROJEC
T_SOURCE_DIR
}
/include/*.h"
)
file
(
GLOB HEADERS
"
${
CMAKE_CURREN
T_SOURCE_DIR
}
..
/include/*.h"
)
install
(
FILES
${
HEADERS
}
DESTINATION include/packet
)
install
(
FILES
${
HEADERS
}
DESTINATION include/packet
)
install
(
TARGETS
${
CMAKE_
PROJECT_NAME
}
DESTINATION lib
)
install
(
TARGETS
${
PROJECT_NAME
}
DESTINATION lib
)
install
(
TARGETS
${
CMAKE_
PROJECT_NAME
}
static DESTINATION lib
)
install
(
TARGETS
${
PROJECT_NAME
}
static DESTINATION lib
)
file
(
MAKE_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/../doc
)
file
(
MAKE_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/../doc
)
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/../doc DESTINATION .
)
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/../doc DESTINATION .
)
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