aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-10-27 14:44:52 +0200
committerStapleButter <thetotalworm@gmail.com>2018-10-27 14:44:52 +0200
commitfb284f33ad6573be7a43bddb040c2573c67dba17 (patch)
treec268af871bec91e8621768b5e8c6a8e467c94c80 /CMakeLists.txt
parent658856b256d4e6c255a25ecdd6d1a37d3626877b (diff)
parent307c26de933739e85df15d39d813521fa50ae650 (diff)
Merge branch 'master' of https://github.com/StapleButter/melonDS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4c8b8a3..7c08b57 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,13 +84,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"