Skip to content

Commit

Permalink
Add Linux support (#38)
Browse files Browse the repository at this point in the history
Tested with the blackfly, seems to do fine.
  • Loading branch information
aliddell authored Sep 10, 2024
1 parent 81646c7 commit 980ae59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.2](https://github.com/acquire-project/acquire-driver-spinnaker/compare/v0.1.1...v0.1.2) - 2024-09-09

### Added

- Linux support.

## [0.1.1](https://github.com/acquire-project/acquire-driver-spinnaker/compare/v0.1.0...v0.1.1) - 2023-10-02

### Added
Expand Down
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")
Expand Down

0 comments on commit 980ae59

Please sign in to comment.