Skip to content

Commit

Permalink
Work on CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed Dec 10, 2024
1 parent 98c6dff commit 5897e6d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions thirdparty/ComponentLibrary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

# Use that find_package() call in the root project:
find_package(Qt6 6.5 REQUIRED COMPONENTS Svg Qml Quick QuickControls2 LabsQmlModels)
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Svg Qml Quick QuickControls2 LabsQmlModels)

################################################################################

Expand Down Expand Up @@ -190,12 +190,15 @@ qt_add_library(ComponentLibrary STATIC)

qt_add_qml_module(ComponentLibrary
URI ComponentLibrary
#VERSION 1.0 # not particularly necessary
#RESOURCE_PREFIX /ComponentLibrary/imports # ???
DEPENDENCIES QtCore QtQuick
RESOURCE_PREFIX /thirdparty/ComponentLibrary
QML_FILES ${MODULE_QML_FILES} ${MODULE_JS_FILES}
RESOURCES ${MODULE_ASSETS}
SOURCES ${MODULE_SOURCES}
)

target_link_libraries(ComponentLibrary PRIVATE Qt6::Qml Qt6::Quick Qt6::QuickControls2 Qt6::LabsQmlModels)
target_include_directories(ComponentLibrary PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(ComponentLibrary PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

target_compile_definitions(ComponentLibrary PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)

target_link_libraries(ComponentLibrary PRIVATE Qt6::Core Qt6::Qml Qt6::Quick Qt6::QuickControls2 Qt6::LabsQmlModels)

0 comments on commit 5897e6d

Please sign in to comment.