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
bccfb908
Commit
bccfb908
authored
7 months ago
by
Joscha Schmiedt
Browse files
Options
Downloads
Patches
Plain Diff
Merge renaming into CMakeLists.txt adaptations for Windows
parent
0bc5c515
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!61
Release 0.3.0
,
!54
Resolve "Windows: Linker errors with protobuf-generated code"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+11
-12
11 additions, 12 deletions
CMakeLists.txt
test/CMakeLists.txt
+3
-3
3 additions, 3 deletions
test/CMakeLists.txt
with
14 additions
and
15 deletions
CMakeLists.txt
+
11
−
12
View file @
bccfb908
...
...
@@ -171,9 +171,9 @@ target_link_libraries(caosdb_grpc
# liblinkahead
# ---------
add_library
(
caosdb
SHARED
${
lib
caosdb
_INCL
}
${
lib
caosdb
_SRC
}
)
target_link_libraries
(
caosdb
PUBLIC
add_library
(
linkahead
SHARED
${
lib
linkahead
_INCL
}
${
lib
linkahead
_SRC
}
)
target_link_libraries
(
linkahead
PUBLIC
caosdb_grpc gRPC::grpc gRPC::grpc++ protobuf::libprotobuf
${
Boost_LIBRARIES
}
)
set
(
liblinkahead linkahead
)
...
...
@@ -187,9 +187,9 @@ target_include_directories(linkahead PUBLIC
# libclinkahead
# ----------
add_library
(
c
caosdb
SHARED src/c
caosdb
.cpp
)
target_link_libraries
(
c
caosdb
PUBLIC
caosdb
caosdb_grpc gRPC::grpc gRPC::grpc++ protobuf::libprotobuf
${
Boost_LIBRARIES
}
add_library
(
c
linkahead
SHARED src/c
linkahead
.cpp
)
target_link_libraries
(
c
linkahead
PUBLIC
linkahead
caosdb_grpc gRPC::grpc gRPC::grpc++ protobuf::libprotobuf
${
Boost_LIBRARIES
}
)
target_include_directories
(
clinkahead PUBLIC
$<BUILD_INTERFACE:
${
liblinkahead_SOURCE_DIR
}
/include>
...
...
@@ -197,7 +197,6 @@ target_include_directories(clinkahead PUBLIC
$<INSTALL_INTERFACE:include>
)
#set_target_properties(ccaosdb PROPERTIES LINK_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}/caosdb.dir/${CMAKE_BUILD_TYPE}/exports.def")
# clinkaheadcli
# ----------
...
...
@@ -207,8 +206,8 @@ target_include_directories(clinkaheadcli PUBLIC
$<BUILD_INTERFACE:
${
liblinkahead_BINARY_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries
(
c
caosdb
cli PRIVATE
caosdb_grpc c
caosdb
target_link_libraries
(
c
linkahead
cli PRIVATE
caosdb_grpc c
linkahead
gRPC::grpc protobuf::libprotobuf
${
Boost_LIBRARIES
}
)
...
...
@@ -220,8 +219,8 @@ target_include_directories(cxxlinkaheadcli PUBLIC
$<BUILD_INTERFACE:
${
liblinkahead_BINARY_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries
(
cxx
caosdb
cli PRIVATE
caosdb
caosdb_grpc gRPC::grpc++ protobuf::libprotobuf
${
Boost_LIBRARIES
}
target_link_libraries
(
cxx
linkahead
cli PRIVATE
linkahead
caosdb_grpc gRPC::grpc++ protobuf::libprotobuf
${
Boost_LIBRARIES
}
)
...
...
@@ -363,7 +362,7 @@ set(liblinkahead_LIB_DEST "lib")
set
(
CMAKE_INSTALL_PREFIX
"$ENV{HOME}/.local/"
)
install
(
# targets to install
TARGETS
${
LIBCAOSDB
}
ccaosdb
caosdb_grpc
TARGETS
linkahead clinkahead
caosdb_grpc
# name of the CMake "export group" containing the targets we want to install
EXPORT linkaheadTargets
# Dynamic, static library and include destination locations after running
...
...
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
3
−
3
View file @
bccfb908
...
...
@@ -62,10 +62,10 @@ 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
)
set
(
lib
caosdb
_TEST_SRC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
test_case_name
}
.cpp
${
lib
caosdb
_TEST_SRC
}
"
)
set
(
lib
linkahead
_TEST_SRC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
test_case_name
}
.cpp
${
lib
linkahead
_TEST_SRC
}
"
)
target_link_libraries
(
${
test_case_name
}
PRIVATE GTest::gtest_main
caosdb ccaosdb
gtest::gtest caosdb_grpc
)
PRIVATE GTest::gtest_main
linkahead clinkahead
gtest::gtest caosdb_grpc
)
target_include_directories
(
${
test_case_name
}
PUBLIC
${
CMAKE_CURRENT_BINARY_DIR
}
/include
${
CMAKE_CURRENT_BINARY_DIR
}
)
set_target_properties
(
${
test_case_name
}
PROPERTIES RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
"
)
...
...
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