WX: Build fix

GTK2 is a dependency on Linux whenever USE_X11 is true, but we were
not linking or adding the include directory for GTK for DolphinWX.

Fixes a regression introduced by 6197d9622.
This commit is contained in:
Léo Lam 2017-04-26 13:47:49 +02:00
parent 33f56a84b2
commit fa0c61eb6d
1 changed files with 6 additions and 0 deletions

View File

@ -107,6 +107,12 @@ endif()
add_executable(dolphin-emu ${SRCS}) add_executable(dolphin-emu ${SRCS})
target_link_libraries(dolphin-emu ${LIBS}) target_link_libraries(dolphin-emu ${LIBS})
if(USE_X11)
find_package(GTK2 REQUIRED)
target_link_libraries(dolphin-emu ${GTK2_LIBRARIES})
target_include_directories(dolphin-emu PRIVATE ${GTK2_INCLUDE_DIRS})
endif()
# Handle localization # Handle localization
find_package(Gettext) find_package(Gettext)
if(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE) if(GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE)