Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
caosdb
Software
caosdb-cpplib
Commits
67ad4fe0
Verified
Commit
67ad4fe0
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: pipeline
parent
ca5e8cae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9639
failed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+12
-5
12 additions, 5 deletions
CMakeLists.txt
conanfile.py
+2
-0
2 additions, 0 deletions
conanfile.py
with
14 additions
and
5 deletions
CMakeLists.txt
+
12
−
5
View file @
67ad4fe0
...
...
@@ -36,12 +36,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set
(
CMAKE_MODULE_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake"
${
CMAKE_MODULE_PATH
}
)
# dependency management with conan
#
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
#
conan_basic_setup()
include
(
${
CMAKE_BINARY_DIR
}
/conanbuildinfo.cmake
)
conan_basic_setup
()
set
(
PROJECT_INCLUDE_DIR
"
${
PROJECT_SOURCE_DIR
}
/include"
)
option
(
LINTING ON
)
option
(
LINTING
"clang-tidy and iwye"
ON
)
if
(
LINTING
)
find_program
(
iwyu NAMES include-what-you-use iwyu PATHS
${
CMAKE_SOURCE_DIR
}
/tools/include-what-you-use/
${
iwyu_os
}
/bin
)
if
(
NOT iwyu
)
...
...
@@ -79,7 +79,7 @@ set_target_properties(caosdbcli PROPERTIES
CXX_CLANG_TIDY
"
${
_CMAKE_CXX_CLANG_TIDY
}
"
CXX_INCLUDE_WHAT_YOU_USE
"
${
_CMAKE_CXX_INCLUDE_WHAT_YOU_USE
}
"
)
target_link_libraries
(
caosdbcli caosdb
)
target_link_libraries
(
caosdbcli caosdb
caosdb_info_v1alpha1
${
CONAN_LIBS
}
)
if
(
"
${
CMAKE_BUILD_TYPE
}
"
MATCHES
"Debug"
)
# supress warnings during build of gtest
...
...
@@ -142,6 +142,7 @@ target_link_libraries(caosdb_info_v1alpha1
${
CONAN_LIBS
}
)
target_include_directories
(
caosdb_info_v1alpha1 PUBLIC
# headers to include when building from source
${
CONAN_INCLUDE_DIRS
}
$<BUILD_INTERFACE:
${
libcaosdb_SOURCE_DIR
}
/include>
$<BUILD_INTERFACE:
${
libcaosdb_BINARY_DIR
}
/include>
$<INSTALL_INTERFACE:include>
...
...
@@ -149,7 +150,8 @@ target_include_directories(caosdb_info_v1alpha1 PUBLIC
target_link_libraries
(
caosdb
caosdb_info_v1alpha1
${
CONAN_LIBS
}
)
${
CONAN_LIBS
}
)
###############################################
...
...
@@ -183,6 +185,11 @@ target_include_directories(caosdb PUBLIC
$<INSTALL_INTERFACE:include>
)
target_include_directories
(
caosdbcli PUBLIC
${
libcaosdb_SOURCE_DIR
}
/include>
${
libcaosdb_BINARY_DIR
}
/include>
${
CONAN_INCLUDE_DIRS
}
)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{HOME}/.local/"
)
# Install libcaosdb in CMAKE_INSTALL_PREFIX (defaults to /usr/local on linux).
...
...
This diff is collapsed.
Click to expand it.
conanfile.py
+
2
−
0
View file @
67ad4fe0
...
...
@@ -19,6 +19,8 @@ class LibcaosdbConan(ConanFile):
def
config_options
(
self
):
if
self
.
settings
.
os
==
"
Windows
"
:
del
self
.
options
.
fPIC
elif
self
.
settings
.
get_safe
(
"
compiler.libcxx
"
)
is
not
None
:
self
.
settings
.
compiler
.
libcxx
=
"
libstdc++11
"
def
source
(
self
):
self
.
run
(
"
git clone https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git
"
)
...
...
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