aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/CMakeLists.txt
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2020-06-03 14:40:50 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2020-06-03 14:40:50 +0200
commit6e0425d34e9bcdff5f93258e2127c95ebae0ea59 (patch)
tree9a81c717a8d0e1bc059e5af0adfec0ea8f93bcb8 /src/frontend/qt_sdl/CMakeLists.txt
parent54edd517971df3bfe4b0e07ce53aa923cbbd782f (diff)
Add missing threads dependency
Diffstat (limited to 'src/frontend/qt_sdl/CMakeLists.txt')
-rw-r--r--src/frontend/qt_sdl/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt
index 1559cd4..2ebef96 100644
--- a/src/frontend/qt_sdl/CMakeLists.txt
+++ b/src/frontend/qt_sdl/CMakeLists.txt
@@ -44,6 +44,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
+find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SDL2 REQUIRED sdl2)
@@ -53,6 +54,8 @@ else()
add_executable(melonDS ${SOURCES_QT_SDL})
endif()
+target_link_libraries(melonDS ${CMAKE_THREAD_LIBS_INIT})
+
target_include_directories(melonDS PRIVATE ${SDL2_INCLUDE_DIRS})
target_include_directories(melonDS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(melonDS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")