From dc0a23ca939c6f49066437116acc8a3ec214b5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=A9la=20Palkovics?= Date: Sun, 6 Mar 2016 19:34:16 +0100 Subject: [PATCH] correctly add SDL2 library --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 912771c..8c9e0cc 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 "") +