Skip to content
Snippets Groups Projects
Commit c6497865 authored by Philip Trettner's avatar Philip Trettner
Browse files

Fixed Qt5 support for cmakelists

parent b2522ba5
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment