Skip to content

Commit

Permalink
Update OBCMake
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Oct 2, 2024
1 parent a849dc7 commit 2032e82
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ project(Qx

# Get helper scripts
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FetchOBCMake.cmake)
fetch_ob_cmake("4266636139c46dc936baa0f0f621cf2ffaf18292")
fetch_ob_cmake("v0.3.7")

# Initialize project according to standard rules
include(OB/Project)
Expand Down Expand Up @@ -96,8 +96,8 @@ endif()

# Find Qt package
add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x060000)
include(OB/BetterFindQt6)
ob_find_qt6_package(REQUIRED COMPONENTS ${ALL_QT_COMPONENTS})
include(OB/Qt)
ob_find_package_qt(REQUIRED COMPONENTS ${ALL_QT_COMPONENTS})

#--------------------Package Config-----------------------

Expand Down
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set(DOXYGEN_PREDEFINED
ob_standard_documentation(${DOC_TARGET_NAME}
DOXY_VER 1.9.4
PROJ_NAME "${PROJECT_NAME}"
QT_PREFIX "${Qt6_PREFIX_PATH}"
QT_PREFIX "${Qt_PREFIX_PATH}"
QT_MODULES
qtconcurrent
qtcore
Expand Down
2 changes: 1 addition & 1 deletion lib/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ qx_add_component("Core"
qx-table.dox
LINKS
PUBLIC
Qt6::Core
${Qt}::Core
Qx::Utility
)
4 changes: 2 additions & 2 deletions lib/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ qx_add_component("Gui"
qx-color.cpp
LINKS
PUBLIC
Qt6::Core
Qt6::Gui
${Qt}::Core
${Qt}::Gui
)
2 changes: 1 addition & 1 deletion lib/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ qx_add_component("Linux"
qx-directorydesktopentry.cpp
LINKS
PUBLIC
Qt6::Core
${Qt}::Core
Qx::Core
Qx::Io
)
4 changes: 2 additions & 2 deletions lib/network/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ qx_add_component("Network"
qx-downloadtask.cpp
LINKS
PUBLIC
Qt6::Core
Qt6::Network
${Qt}::Core
${Qt}::Network
Qx::Core
Qx::Io
)
4 changes: 2 additions & 2 deletions lib/widgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ qx_add_component("Widgets"
qx-treeinputdialog.cpp
LINKS
PUBLIC
Qt6::Core
Qt6::Widgets
${Qt}::Core
${Qt}::Widgets
Qx::Core
)
4 changes: 2 additions & 2 deletions lib/windows-gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ qx_add_component("Windows-gui"
Qx::Windows
Qx::Core
PUBLIC
Qt6::Core
Qt6::Gui
${Qt}::Core
${Qt}::Gui
)
2 changes: 1 addition & 1 deletion lib/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ qx_add_component("Windows"
PRIVATE
Qx::Io
PUBLIC
Qt6::Core
${Qt}::Core
Version.lib
Qx::Core
)
4 changes: 2 additions & 2 deletions lib/xml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ qx_add_component("Xml"
qx-xmlstreamwritererror.cpp
LINKS
PUBLIC
Qt6::Core
Qt6::Xml
${Qt}::Core
${Qt}::Xml
)
2 changes: 1 addition & 1 deletion tests/_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ target_include_directories(${TESTS_COMMON_TARGET}

target_link_libraries(${TESTS_COMMON_TARGET}
INTERFACE
Qt6::Test
${Qt}::Test
)

0 comments on commit 2032e82

Please sign in to comment.