-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Windows shared libraries build & added CI #608
base: master
Are you sure you want to change the base?
Changes from all commits
c1cb755
2a39fc5
755af12
5faa88a
845b945
026be73
c646652
5df706c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -4,6 +4,7 @@ find_package(jsoncpp REQUIRED) | |||
find_package(CURL REQUIRED) | ||||
find_package(spdlog REQUIRED) | ||||
include(Coverage) | ||||
include(GenerateExportHeader) | ||||
|
||||
# ==== Libraries ==== | ||||
add_library(ouster_client src/client.cpp src/types.cpp src/sensor_info.cpp src/netcompat.cpp src/lidar_scan.cpp | ||||
|
@@ -41,6 +42,19 @@ target_include_directories(ouster_client SYSTEM PUBLIC | |||
$<INSTALL_INTERFACE:include/optional-lite> | ||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/optional-lite>) | ||||
|
||||
# ==== Export header ==== | ||||
|
||||
set(ouster_client_export_filename | ||||
ouster_client/ouster/ouster_client_export.h) | ||||
|
||||
generate_export_header(ouster_client | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generating For ouster_osf, ouster_pcap and ouster_viz It seemed safe to just go with exporting all symbols, see this line as an example: ouster-sdk/ouster_osf/CMakeLists.txt Line 150 in 5df706c
|
||||
EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/${ouster_client_export_filename}) | ||||
|
||||
target_include_directories(ouster_client PUBLIC | ||||
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/ouster_client>) | ||||
|
||||
install(FILES ${PROJECT_BINARY_DIR}/${ouster_client_export_filename} DESTINATION include/ouster) | ||||
|
||||
# ==== Install ==== | ||||
install(TARGETS ouster_client | ||||
EXPORT ouster-sdk-targets | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is
D:/a
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an absolute path which I had to use to get this to work, see the step above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably parameterize the
BUILD_SHARED_LIBS
rather than duplicating the build step.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I'm not too familiar with this CI, excuse my shabby solution.