Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
sguionni committed May 29, 2024
1 parent 89e6b89 commit 4776e2c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
11 changes: 4 additions & 7 deletions lib/tool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ configure_qt()
add_library(vtx_tool)
configure_target(vtx_tool)

set(QT_RESOURCES_PATH asset/qt/resources)

file(GLOB_RECURSE HEADERS include/*)
file(GLOB_RECURSE SOURCES src/*)
file(GLOB_RECURSE QT_RESOURCES asset/qt/resources/*)
file(GLOB_RECURSE QT_RESOURCES ${QT_RESOURCES_PATH}/*)
target_sources(vtx_tool
PRIVATE ${SOURCES}
PUBLIC FILE_SET public_headers TYPE HEADERS BASE_DIRS include FILES ${HEADERS})

qt_add_resources(
vtx_tool
vtx_qt_resources_tool
BASE asset/qt/resources/
FILES ${QT_RESOURCES}
)
qt_add_resources(vtx_tool vtx_qt_resources_tool BASE ${QT_RESOURCES_PATH} FILES ${QT_RESOURCES})

target_link_libraries(vtx_tool PRIVATE vtx_util::vtx_util)
target_link_libraries(vtx_tool PRIVATE vtx_app::vtx_app)
Expand Down
11 changes: 4 additions & 7 deletions lib/ui/cmake/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@ find_package(Qt6 COMPONENTS Gui REQUIRED)
find_package(Qt6 COMPONENTS Widgets REQUIRED)
find_package(Qt6 COMPONENTS OpenGLWidgets REQUIRED)

set(QT_RESOURCES_PATH ${CMAKE_CURRENT_LIST_DIR}/../asset/qt/resources)

file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_LIST_DIR}/../include/*)
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_LIST_DIR}/../src/*)
file(GLOB_RECURSE QT_RESOURCES ${CMAKE_CURRENT_LIST_DIR}/../asset/qt/resources/*)
file(GLOB_RECURSE QT_RESOURCES ${QT_RESOURCES_PATH}/*)
target_sources(vtx_ui
PRIVATE ${SOURCES}
PUBLIC FILE_SET public_headers TYPE HEADERS BASE_DIRS ${CMAKE_CURRENT_LIST_DIR}/../include FILES ${HEADERS})

qt_add_resources(
vtx_ui
vtx_qt_resources_ui
BASE ${CMAKE_CURRENT_LIST_DIR}/../asset/qt/resources/
FILES ${QT_RESOURCES}
)
qt_add_resources(vtx_ui vtx_qt_resources_ui BASE ${QT_RESOURCES_PATH} FILES ${QT_RESOURCES})

if (NOT DEFINED _VTX_UI_CONAN)
target_link_libraries(vtx_ui PUBLIC vtx_util)
Expand Down
3 changes: 0 additions & 3 deletions lib/ui/src/ui/qt/application_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ namespace VTX::UI::QT
// Setup some Qt static configuration.
QCoreApplication::setAttribute( Qt::AA_UseDesktopOpenGL );
QCoreApplication::setAttribute( Qt::AA_DontCheckOpenGLContextThreadAffinity );

// Init resources
// Q_INIT_RESOURCE( resources_ui );
}

int ZERO = 0;
Expand Down

0 comments on commit 4776e2c

Please sign in to comment.