Skip to content
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

Add Linux support #38

Merged
merged 5 commits into from
Sep 10, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmake/spinnaker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ find_path(spinnaker_include_dir "Spinnaker.h"
PATH_SUFFIXES
"include/spinnaker" # osx
"FLIR Systems/Spinnaker/include" # windows
"spinnaker/include" # linux
DOC "Directory that contains Spinnaker.h"
NO_CACHE)

Expand All @@ -28,6 +29,10 @@ if(spinnaker_include_dir)
set_target_properties(${tgt} PROPERTIES
IMPORTED_LOCATION "${spinnaker_include_dir}../../lib/libSpinnaker.dylib"
)
elseif(LINUX)
set_target_properties(${tgt} PROPERTIES
IMPORTED_LOCATION "${spinnaker_include_dir}../lib/libSpinnaker.so"
)
endif()
else()
message(STATUS "Could not find Spinnaker.h")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd change the message type from STATUS to FATAL_ERROR to properly stop the build from proceeding if it can't find the package.

Expand Down
Loading