Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

Commit

Permalink
correctly add SDL2 library
Browse files Browse the repository at this point in the history
  • Loading branch information
KoKuToru committed Mar 6, 2016
1 parent 922c6bc commit dc0a23c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ include(FindPkgConfig)
# SDL_INCLUDE_DIRS - the libSDL include directory
# SDL_LIBRARIES - The libSDL libraries
if(PKG_CONFIG_FOUND)
pkg_check_modules (SDL REQUIRED sdl2)
pkg_check_modules (SDL2 REQUIRED sdl2)
else()
find_package(SDL2 REQURIED)
list(APPEND SDL_INCLUDE_DIRS ${SDL2_INCLUDE_DIR})
list(APPEND SDL_LIBRARIES ${SDL2_LIBRARIES})
endif()

include_directories(${SDL2_INCLUDE_DIR})

# Link SDL
target_link_libraries(koku-xinput-wine ${SDL_LIBRARY})
target_link_libraries(koku-xinput-wine ${SDL2_LIBRARIES})
set_target_properties(koku-xinput-wine PROPERTIES PREFIX "")

0 comments on commit dc0a23c

Please sign in to comment.