|
@@ -1,4 +1,4 @@
|
|
|
-cmake_minimum_required(VERSION 3.5)
|
|
|
+cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
|
set(this_exe PlayerGL)
|
|
|
|
|
@@ -15,7 +15,7 @@ file(GLOB LOCAL_SRC
|
|
|
|
|
|
${CMAKE_SOURCE_DIR}/External/module/Logs/*.cpp
|
|
|
${CMAKE_SOURCE_DIR}/External/module/ThreadPool/*.cpp
|
|
|
- ${CMAKE_SOURCE_DIR}/External/module/VideoPlayer/*.cpp
|
|
|
+ # ${CMAKE_SOURCE_DIR}/External/module/VideoPlayer/*.cpp
|
|
|
|
|
|
|
|
|
|
|
@@ -46,18 +46,19 @@ target_include_directories(${this_exe} PRIVATE
|
|
|
${CMAKE_SOURCE_DIR}/External/module
|
|
|
${CMAKE_SOURCE_DIR}/External/module/ThreadPool
|
|
|
${CMAKE_SOURCE_DIR}/External/module/RingQueue
|
|
|
- ${CMAKE_SOURCE_DIR}/External/module/VideoPlayer
|
|
|
+ # ${CMAKE_SOURCE_DIR}/External/module/VideoPlayer
|
|
|
|
|
|
|
|
|
- ${CURL_INCLUDE_DIR}
|
|
|
- ${FFMPEG_INCLUDE_DIR}
|
|
|
+ # ${CURL_INCLUDE_DIR}
|
|
|
+ # ${FFMPEG_INCLUDE_DIR}
|
|
|
${spdlog_INCLUDE_DIR}
|
|
|
)
|
|
|
|
|
|
target_link_libraries(${this_exe} PRIVATE
|
|
|
- Qt5::Widgets
|
|
|
- Qt5::Core
|
|
|
- Qt5::Network
|
|
|
+ Qt6::Widgets
|
|
|
+ Qt6::Core
|
|
|
+ Qt6::Network
|
|
|
+ Qt6::OpenGLWidgets
|
|
|
# Qt5::Multimedia
|
|
|
# Qt5::Xml
|
|
|
# Qt5::Sql
|
|
@@ -66,13 +67,15 @@ target_link_libraries(${this_exe} PRIVATE
|
|
|
target_link_libraries(${this_exe} PRIVATE
|
|
|
# fmt::fmt
|
|
|
# spdlog::spdlog
|
|
|
- ${CURL_LIBRARY}
|
|
|
- ${FFMPEG_LIBRARY}
|
|
|
+ # ${CURL_LIBRARY}
|
|
|
+ # ${FFMPEG_LIBRARY}
|
|
|
${spdlog_LIBRARY}
|
|
|
+ # opengl32
|
|
|
+ # glu32
|
|
|
)
|
|
|
|
|
|
-find_package(OpenGL REQUIRED)
|
|
|
-target_link_libraries(${this_exe} PRIVATE ${OPENGL_LIBRARIES})
|
|
|
+# find_package(OpenGL REQUIRED)
|
|
|
+# target_link_libraries(${this_exe} PRIVATE ${OPENGL_LIBRARIES})
|
|
|
|
|
|
if(CMAKE_CXX_COMPILER_VERSION LESS 9.0)
|
|
|
target_link_libraries(${this_exe} PRIVATE
|