Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Library does not support Linux #80

Open
vladislav-tkach opened this issue Jun 12, 2021 · 0 comments
Open

Library does not support Linux #80

vladislav-tkach opened this issue Jun 12, 2021 · 0 comments

Comments

@vladislav-tkach
Copy link

The lib/CMakeLists.txt does not contain X11 linkage for Linux

if(WIN32)
	target_link_libraries(gainput ${XINPUT} ws2_32)
	target_link_libraries(gainputstatic ${XINPUT} ws2_32)
	add_definitions(-DGAINPUT_LIB_DYNAMIC=1)
elseif(ANDROID)
	target_link_libraries(gainputstatic native_app_glue log android)
	target_link_libraries(gainput native_app_glue log android)
elseif(APPLE)
	find_library(FOUNDATION Foundation)
	find_library(IOKIT IOKit)
  find_library(GAME_CONTROLLER GameController)
	target_link_libraries(gainput ${FOUNDATION} ${IOKIT} ${GAME_CONTROLLER})
  if(IOS)
      find_library(UIKIT UIKit)
      find_library(COREMOTION CoreMotion)
      find_library(QUARTZCORE QuartzCore)
      target_link_libraries(gainput ${UIKIT} ${COREMOTION})
  else()
      find_library(APPKIT AppKit)
      target_link_libraries(gainput ${APPKIT})
  endif()
endif()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant