Added first Feral CMake. Will see if I can use library calls. Likely will need to be updated.

This commit is contained in:
adas20 2025-06-23 14:26:47 -04:00
parent 15f25cf9ae
commit 8ca063fe97
2 changed files with 11 additions and 1 deletions

View file

@ -358,7 +358,7 @@ add_subdirectory(opencv EXCLUDE_FROM_ALL)
add_subdirectory(fusion EXCLUDE_FROM_ALL)
# FERAL INTERACTIVE
# add_subdirectory(feralinteractive EXCLUDE_FROM_ALL)
add_subdirectory(feralinteractive EXCLUDE_FROM_ALL)
# add nice ALIAS targets for ease of use
if(USE_SYSTEM_LIBUSB)
@ -392,3 +392,4 @@ add_library(3rdparty::miniupnpc ALIAS libminiupnpc-static)
add_library(3rdparty::rtmidi ALIAS rtmidi)
add_library(3rdparty::opencv ALIAS ${OPENCV_TARGET})
add_library(3rdparty::fusion ALIAS Fusion)
add_library(3rdparty::feralinteractive ALIAS 3rdparty_feralinteractive)

View file

@ -0,0 +1,9 @@
# Feral Interactive
add_library(3rdparty_feralinteractive INTERFACE)
if (CMAKE_SYSTEM MATCHES "Linux")
target_include_directories(3rdparty_feralinteractive INTERFACE feralinteractive/lib)
target_compile_definitions(3rdparty_feralinteractive INTERFACE -DGAMEMODE_AVAILABLE)
target_link_libraries(3rdparty_feralinteractive INTERFACE feralinteractive)
endif()