19 lines
507 B
CMake
19 lines
507 B
CMake
add_subdirectory(${DEPENDENCIES_DIR}/GLAD ${CMAKE_BINARY_DIR}/Dependencies/GLAD)
|
|
|
|
project(Common)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(QT6_LIBRARIES_INCL Qt6::Core Qt6::Gui Qt6::Widgets Qt6::OpenGLWidgets GLAD)
|
|
|
|
qt_standard_project_setup()
|
|
qt_add_library(Common STATIC
|
|
Header/GL/Adorn.hpp
|
|
Header/GL/RenderContext.hpp
|
|
Header/GL/Widget.hpp
|
|
|
|
Source/GL/Adorn.cpp
|
|
Source/GL/Widget.cpp
|
|
)
|
|
|
|
target_include_directories(Common PUBLIC Header)
|
|
target_link_libraries(Common PUBLIC ${QT6_LIBRARIES_INCL} Engine) |