Skip to content
Snippets Groups Projects
Commit 7b17f2e9 authored by BtbN's avatar BtbN
Browse files

Update Qt5 usage in CMakeLists

parent 5ba8b09c
No related branches found
No related tags found
No related merge requests found
...@@ -46,10 +46,8 @@ elseif(UNIX) ...@@ -46,10 +46,8 @@ elseif(UNIX)
set(obs_PLATFORM_LIBRARIES set(obs_PLATFORM_LIBRARIES
${X11_LIBRARIES} ${X11_LIBRARIES}
${X11_Xinerama_LIB}) ${X11_Xinerama_LIB}
Qt5::X11Extras)
set(obs_PLATFORM_QT_MODULES
X11Extras)
endif() endif()
set(obs_SOURCES set(obs_SOURCES
...@@ -101,9 +99,6 @@ add_executable(obs WIN32 ...@@ -101,9 +99,6 @@ add_executable(obs WIN32
${obs_UI_HEADERS} ${obs_UI_HEADERS}
${obs_QRC_SOURCES}) ${obs_QRC_SOURCES})
qt5_use_modules(obs Widgets ${obs_PLATFORM_QT_MODULES})
qt5_use_modules(obs Network ${obs_PLATFORM_QT_MODULES})
if(WIN32) if(WIN32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8) if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(_output_suffix "64") set(_output_suffix "64")
...@@ -118,6 +113,8 @@ endif() ...@@ -118,6 +113,8 @@ endif()
target_link_libraries(obs target_link_libraries(obs
libobs libobs
Qt5::Widgets
Qt5::Network
${obs_PLATFORM_LIBRARIES}) ${obs_PLATFORM_LIBRARIES})
install_obs_core(obs) install_obs_core(obs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment