Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cppinttest
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-cppinttest
Commits
8589634d
Verified
Commit
8589634d
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: conan
parent
1cfc51a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9644
failed
3 years ago
Stage: info
Stage: setup
Stage: build
Stage: test
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+5
-2
5 additions, 2 deletions
CMakeLists.txt
conanfile.txt
+2
-0
2 additions, 0 deletions
conanfile.txt
test/CMakeLists.txt
+4
-4
4 additions, 4 deletions
test/CMakeLists.txt
with
11 additions
and
6 deletions
CMakeLists.txt
+
5
−
2
View file @
8589634d
...
...
@@ -27,12 +27,15 @@ project(libcaosdb_inttests
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
# dependency management with conan
include
(
${
CMAKE_BINARY_DIR
}
/conanbuildinfo.cmake
)
conan_basic_setup
()
# ignore some warnings here
add_compile_options
(
-Wno-unused-parameter -Wno-unused-result -g
)
message
(
STATUS
"System prefix path:
${
CMAKE_SYSTEM_PREFIX_PATH
}
"
)
message
(
STATUS
"Local prefix path:
${
CMAKE_PREFIX_PATH
}
"
)
set
(
CMAKE_MODULE_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake"
${
CMAKE_MODULE_PATH
}
)
enable_testing
()
add_subdirectory
(
test
)
This diff is collapsed.
Click to expand it.
conanfile.txt
0 → 100644
+
2
−
0
View file @
8589634d
[requires]
libcaosdb/0.0.1
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
4
−
4
View file @
8589634d
...
...
@@ -23,10 +23,10 @@ set(test_cases
test_connection
)
find_package
(
caosdb REQUIRED
)
message
(
STATUS
"Found libcaosdb:
${
caosdb_DIR
}
"
)
#
find_package(caosdb REQUIRED)
#
message(STATUS "Found libcaosdb: ${caosdb_DIR}")
include
(
FetchGTest
)
#
include(FetchGTest)
# add special cmake functions for gtest
include
(
GoogleTest REQUIRED
)
...
...
@@ -36,7 +36,7 @@ math(EXPR len_test_cases "${len_test_cases} - 1")
foreach
(
i RANGE
"
${
len_test_cases
}
"
)
list
(
GET test_cases
${
i
}
test_case_name
)
add_executable
(
${
test_case_name
}
${
test_case_name
}
.cpp
)
target_link_libraries
(
${
test_case_name
}
PRIVATE
gtest_main
caosdb::caosdb
)
target_link_libraries
(
${
test_case_name
}
PRIVATE caosdb::caosdb
${
CONAN_LIBS
}
)
set_target_properties
(
${
test_case_name
}
PROPERTIES CXX_CLANG_TIDY
""
)
gtest_discover_tests
(
${
test_case_name
}
PROPERTIES
...
...
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