Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libehp
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Open Source Software
libehp
Commits
81fab514
Commit
81fab514
authored
5 years ago
by
Antonio Flores Montoya
Browse files
Options
Downloads
Patches
Plain Diff
add cmake installation target
parent
26232ebf
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
add cmake installation target
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CMakeLists.txt
+14
-1
14 additions, 1 deletion
src/CMakeLists.txt
with
14 additions
and
1 deletion
src/CMakeLists.txt
+
14
−
1
View file @
81fab514
...
...
@@ -11,7 +11,14 @@ set(${PROJECT_NAME}_SRC
ehp.cpp
)
add_library
(
${
PROJECT_NAME
}
SHARED
option
(
EHP_BUILD_SHARED_LIBS
"Build shared library."
ON
)
if
(
EHP_BUILD_SHARED_LIBS
)
set
(
BUILD_SHARED_LIBS ON
)
else
()
set
(
BUILD_SHARED_LIBS OFF
)
endif
()
add_library
(
${
PROJECT_NAME
}
${${
PROJECT_NAME
}
_H
}
${${
PROJECT_NAME
}
_SRC
}
)
...
...
@@ -31,3 +38,9 @@ add_custom_command(
COMMAND
"
${
CMAKE_COMMAND
}
"
-E copy
${
PUBLIC_HEADERS
}
"
${
CMAKE_BINARY_DIR
}
/include/"
)
install
(
TARGETS
${
PROJECT_NAME
}
EXPORT ehpTargets
INCLUDES DESTINATION include
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install
(
FILES
${
PUBLIC_HEADERS
}
DESTINATION include
)
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