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
Compare revisions
26232ebfcd26f0532da8dba84f7ce5fbf069dbb1 to 1896c4f56227908fbe56569fcaf159799609d069
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
opensrc/libehp
Select target project
No results found
1896c4f56227908fbe56569fcaf159799609d069
Select Git revision
Swap
Target
opensrc/libehp
Select target project
opensrc/libehp
1 result
26232ebfcd26f0532da8dba84f7ce5fbf069dbb1
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
add cmake installation target
· 81fab514
Antonio Flores Montoya
authored
5 years ago
81fab514
Merge branch 'cmake-installation-target' into 'master'
· 1896c4f5
Jason Hiser
authored
5 years ago
add cmake installation target See merge request
!6
1896c4f5
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
View file @
1896c4f5
...
...
@@ -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.