Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scord
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
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
eu
ADMIRE
scord
Commits
9db332a6
Verified
Commit
9db332a6
authored
2 years ago
by
Alberto Miranda
♨️
Browse files
Options
Downloads
Patches
Plain Diff
Public headers now live in $PREFIX/include/scord
parent
bf97d7e4
No related branches found
No related tags found
1 merge request
!79
Resolve "Rename the C header file to scord_admire.h or install in scord/admire.h"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/api/CMakeLists.txt
+0
-5
0 additions, 5 deletions
src/common/api/CMakeLists.txt
src/lib/CMakeLists.txt
+20
-9
20 additions, 9 deletions
src/lib/CMakeLists.txt
with
20 additions
and
14 deletions
src/common/api/CMakeLists.txt
+
0
−
5
View file @
9db332a6
...
...
@@ -33,8 +33,3 @@ target_link_libraries(_api_types PRIVATE
Margo::Margo common::logger PUBLIC fmt::fmt common::abt_cxx
)
set_property
(
TARGET _api_types PROPERTY POSITION_INDEPENDENT_CODE ON
)
install
(
FILES admire_types.h admire_types.hpp
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
This diff is collapsed.
Click to expand it.
src/lib/CMakeLists.txt
+
20
−
9
View file @
9db332a6
...
...
@@ -24,18 +24,29 @@
add_library
(
libscord SHARED
)
target_sources
(
libscord
target_sources
(
libscord
PUBLIC admire.h admire.hpp
PRIVATE admire.cpp c_wrapper.cpp detail/impl.hpp detail/impl.cpp env.hpp
)
PRIVATE admire.cpp c_wrapper.cpp detail/impl.hpp detail/impl.cpp env.hpp
)
set_target_properties
(
libscord PROPERTIES PUBLIC_HEADER
"admire.h;admire.hpp"
)
list
(
APPEND public_headers
"admire.h"
"
${
CMAKE_SOURCE_DIR
}
/src/common/api/admire_types.h"
"admire.hpp"
"
${
CMAKE_SOURCE_DIR
}
/src/common/api/admire_types.hpp"
)
target_
include_directories
(
libscord PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
set_
target_
properties
(
libscord PROPERTIES PUBLIC_HEADER
"
${
public_headers
}
"
)
target_link_libraries
(
libscord PRIVATE
common::network::rpc_client
common::network::rpc_types PUBLIC
tl::expected common::api::types
)
target_include_directories
(
libscord PUBLIC $<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
>
$<INSTALL_INTERFACE:include/
${
PROJECT_NAME
}
>
)
target_link_libraries
(
libscord
PRIVATE common::network::rpc_client common::network::rpc_types
PUBLIC tl::expected common::api::types
)
set_target_properties
(
libscord PROPERTIES OUTPUT_NAME
"scord"
)
...
...
@@ -43,5 +54,5 @@ install(
TARGETS libscord
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
PUBLIC_HEADER DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
PUBLIC_HEADER DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/
${
PROJECT_NAME
}
)
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