Commit c6497865 authored by Philip Trettner's avatar Philip Trettner

Fixed Qt5 support for cmakelists

parent b2522ba5
Pipeline #1809 passed with stage
......@@ -81,6 +81,15 @@ target_compile_options(ACGL PUBLIC
)
endif()
# qt support
if (ACGL_COMPILE_WITH_QT)
find_package(Qt5Core REQUIRED)
find_package(Qt5OpenGL REQUIRED)
target_link_libraries(ACGL PUBLIC ${Qt5Core_LIBRARIES} ${Qt5OpenGL_LIBRARIES})
qt5_use_modules(ACGL OpenGL Network)
target_compile_definitions(ACGL PUBLIC ACGL_COMPILE_WITH_QT)
endif()
# WIN32 define
IF(WIN32)
target_compile_definitions(ACGL PUBLIC WIN32)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment