Loading files
efeedbe3fThis file is pinned to the selected release. Download the original to open it in your design tool.
# Enable Qt MOC/UIC/RCC
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC OFF)
# Export library
add_library(
librepcb_gui STATIC
boardgui.cpp
boardgui.h
editorapplication.cpp
editorapplication.h
editorwindow.cpp
editorwindow.h
librarygui.cpp
librarygui.h
objectlistmodel.cpp
objectlistmodel.h
openedproject.cpp
openedproject.h
opengllayer.cpp
opengllayer.h
openglrenderer.cpp
openglrenderer.h
openglview.cpp
openglview.h
schematicgui.cpp
schematicgui.h
)
target_include_directories(
librepcb_gui
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../.."
)
target_link_libraries(
librepcb_gui
PUBLIC # LibrePCB
LibrePCB::Core
LibrePCB::Editor
# Qt
${QT}::Core
${QT}::Gui
${QT}::Quick
${QT}::QuickControls2
)
# Alias to namespaced variant
add_library(LibrePCB::Gui ALIAS librepcb_gui)