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
11ee742b
Verified
Commit
11ee742b
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: conan
parent
abf848db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9660
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#9662
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
conanfile.py
+5
-4
5 additions, 4 deletions
conanfile.py
test_package/CMakeLists.txt
+0
-14
0 additions, 14 deletions
test_package/CMakeLists.txt
test_package/conanfile.py
+0
-25
0 additions, 25 deletions
test_package/conanfile.py
test_package/example.cpp
+0
-8
0 additions, 8 deletions
test_package/example.cpp
with
5 additions
and
51 deletions
conanfile.py
+
5
−
4
View file @
11ee742b
from
conans
import
ConanFile
,
CMake
,
tools
class
Libc
aosdbConan
(
ConanFile
):
class
C
aosdbConan
(
ConanFile
):
name
=
"
libcaosdb
"
version
=
"
0.0.
1
"
version
=
"
0.0.
2
"
license
=
"
AGPL-3.0-or-later
"
author
=
"
Timm C. Fitschen <t.fitschen@indiscale.com>
"
url
=
"
https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git
"
...
...
@@ -21,8 +21,9 @@ class LibcaosdbConan(ConanFile):
if
self
.
settings
.
os
==
"
Windows
"
:
del
self
.
options
.
fPIC
def
source
(
self
):
self
.
run
(
"
git clone https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git
"
)
# def source(self):
# self.run("git clone https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git")
# self.run("cd caosdb-cpplib && git submodule update --init")
def
imports
(
self
):
self
.
copy
(
"
protoc*
"
,
"
build_tools
"
,
"
bin
"
)
...
...
This diff is collapsed.
Click to expand it.
test_package/CMakeLists.txt
deleted
100644 → 0
+
0
−
14
View file @
abf848db
cmake_minimum_required
(
VERSION 3.1
)
project
(
PackageTest CXX
)
include
(
${
CMAKE_BINARY_DIR
}
/conanbuildinfo.cmake
)
conan_basic_setup
()
add_executable
(
example example.cpp
)
target_link_libraries
(
example
${
CONAN_LIBS
}
)
# CTest is a testing tool that can be used to test your project.
# enable_testing()
# add_test(NAME example
# WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
# COMMAND example)
This diff is collapsed.
Click to expand it.
test_package/conanfile.py
deleted
100644 → 0
+
0
−
25
View file @
abf848db
import
os
from
conans
import
ConanFile
,
CMake
,
tools
class
LibcaosdbTestConan
(
ConanFile
):
settings
=
"
os
"
,
"
compiler
"
,
"
build_type
"
,
"
arch
"
generators
=
"
cmake
"
def
build
(
self
):
cmake
=
CMake
(
self
)
# Current dir is "test_package/build/<build_id>" and CMakeLists.txt is
# in "test_package"
cmake
.
configure
()
cmake
.
build
()
def
imports
(
self
):
self
.
copy
(
"
*.dll
"
,
dst
=
"
bin
"
,
src
=
"
bin
"
)
self
.
copy
(
"
*.dylib*
"
,
dst
=
"
bin
"
,
src
=
"
lib
"
)
self
.
copy
(
'
*.so*
'
,
dst
=
'
bin
'
,
src
=
'
lib
'
)
def
test
(
self
):
if
not
tools
.
cross_building
(
self
):
os
.
chdir
(
"
bin
"
)
self
.
run
(
"
.%sexample
"
%
os
.
sep
)
This diff is collapsed.
Click to expand it.
test_package/example.cpp
deleted
100644 → 0
+
0
−
8
View file @
abf848db
#include
<iostream>
#include
"caosdb/connection.h"
int
main
()
{
caosdb
::
connection
::
InsecureCaosDBConnectionConfig
config
(
"localhost"
,
8443
);
std
::
cout
<<
config
<<
"
\n
"
;
}
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