Skip to content

Commit

Permalink
COMP: Add AtracsysSDK_PATH_HINTS to find_package
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunderlandkyl committed Oct 20, 2023
1 parent 8a693d2 commit 709b11c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Modules/FindAtracsysSDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ IF(PLUS_USE_ATRACSYS_DEVICE_TYPE STREQUAL "stk")
IF(DEFINED ENV{AtracsysSDK_HOME})
set(AtracsysSDK_INSTALL_PATH $ENV{AtracsysSDK_HOME})
# Add Linux spryTrack to path hints
LIST(APPEND AtracsysSDK_PATH_HINTS "${AtracsysSDK_INSTALL_PATH}")
LIST(APPEND AtracsysSDK_PATH_HINTS "${AtracsysSDK_INSTALL_PATH}")
ENDIF()
endif ()
ELSEIF(PLUS_USE_ATRACSYS_DEVICE_TYPE STREQUAL "ftk")
# use fusionTrack SDK
if (WIN32)
# Windows 64 bit fusionTrack path hints
SET(AtracsysSDK_PATH_HINTS
"../PLTools/Atracsys/windows/ftk64"
"../../PLTools/Atracsys/windows/ftk64"
"../trunk/PLTools/Atracsys/windows/ftk64"
"../PLTools/Atracsys/windows/ftk64/cmake"
"../../PLTools/Atracsys/windows/ftk64/cmake"
"../trunk/PLTools/Atracsys/windows/ftk64/cmake"
)
# On Windows, we look for the installation folder in the registry
get_filename_component(
Expand Down Expand Up @@ -88,7 +88,8 @@ IF(AtracsysSDK_INSTALL_PATH)
set(Atracsys_DIR "${AtracsysSDK_INSTALL_PATH}/cmake/Atracsys")
ENDIF()

find_package(Atracsys REQUIRED COMPONENTS SDK)
find_package(Atracsys REQUIRED COMPONENTS SDK HINTS ${AtracsysSDK_PATH_HINTS})

set(AtracsysSDK_FOUND True)
set(AtracsysSDK_VERSION "${Atracsys_VERSION}")
set(AtracsysSDK_INCLUDE_DIR "${AtracsysSDK_INCLUDE_DIRS}")
Expand Down

0 comments on commit 709b11c

Please sign in to comment.