Add missing threads dependency

This commit is contained in:
Nadia Holmquist Pedersen 2020-06-03 14:40:50 +02:00
parent 54edd51797
commit 6e0425d34e

View File

@ -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}/..")