Skip to content

Commit

Permalink
More OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jan 3, 2024
1 parent 2176e9e commit b0752bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/CMakeLists.txt
Expand Up @@ -313,11 +313,15 @@ if(ANDROID)

# GLESv3 needed by barcode reader's use of OpenGL functions
target_link_libraries(qfield_core PUBLIC GLESv3)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "iOS")
elseif(CMAKE_SYSTEM_NAME STREQUAL "iOS")
target_include_directories(qfield_core
PUBLIC ${CMAKE_SOURCE_DIR}/src/core/platforms/ios)
endif()

if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
target_link_libraries(qfield_core PUBLIC ${QT_PKG}::OpenGL)
endif()

target_compile_features(qfield_core PUBLIC cxx_std_17)
set_target_properties(qfield_core PROPERTIES AUTOMOC TRUE)

Expand All @@ -331,7 +335,6 @@ target_link_libraries(
${QT_PKG}::Network
${QT_PKG}::Quick
${QT_PKG}::Svg
${QT_PKG}::OpenGL
${QT_PKG}::Sensors
${QT_PKG}::Sql
${QT_PKG}::Concurrent
Expand Down

0 comments on commit b0752bc

Please sign in to comment.