From 700e262979f95b9035ed99f531eeb4e13a2ea581 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 24 May 2018 01:15:15 +0200 Subject: [PATCH] Fix build on Arch Linux. --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d7a0e71..e0779f67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,13 +83,14 @@ if (UNIX) FIND_PACKAGE(PkgConfig REQUIRED) PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0) + PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) - INCLUDE_DIRECTORIES(${GTK3_INCLUDE_DIRS}) - LINK_LIBRARIES(${GTK3_LIBRARIES}) + INCLUDE_DIRECTORIES(${GTK3_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS}) + LINK_LIBRARIES(${GTK3_LIBRARIES} ${SDL2_LIBRARIES}) ADD_DEFINITIONS(${GTK3_CFLAGS_OTHER}) - - add_custom_command(OUTPUT melon_grc.c + + add_custom_command(OUTPUT melon_grc.c COMMAND glib-compile-resources --sourcedir="${CMAKE_CURRENT_SOURCE_DIR}" --target="${CMAKE_CURRENT_BINARY_DIR}/melon_grc.c" --generate-source "${CMAKE_CURRENT_SOURCE_DIR}/melon_grc.xml"