Skip to content

Commit

Permalink
Add macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Kovář <[email protected]>
  • Loading branch information
1div0 committed Apr 13, 2024
1 parent c762918 commit 8c03a50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmake/modules/FindR3DSDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ endif()
set(R3DSDK_INCLUDE_DIR ${R3DSDK_ROOT}/Include)
find_library(R3DSDK_LIBRARY NAMES ${R3DSDK_LIB_NAME}
PATHS ${R3DSDK_ROOT}/Lib/linux64/
${R3DSDK_ROOT}/Lib/mac64/
${R3DSDK_ROOT}/Lib/win64/
NO_DEFAULT_PATH
)
Expand All @@ -62,6 +63,9 @@ if(R3DSDK_FOUND)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(R3DSDK_LIBRARIES ${R3DSDK_LIBRARY} dl)
set(R3DSDK_RUNTIME_LIBRARIES ${R3DSDK_ROOT}/Redistributable/linux)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
set(R3DSDK_LIBRARIES ${R3DSDK_LIBRARY} dl)
set(R3DSDK_RUNTIME_LIBRARIES ${R3DSDK_ROOT}/Redistributable/mac)
else()
set(R3DSDK_LIBRARIES ${R3DSDK_LIBRARY})
set(R3DSDK_RUNTIME_LIBRARIES ${R3DSDK_ROOT}/Redistributable/win)
Expand Down

0 comments on commit 8c03a50

Please sign in to comment.