Skip to content

Commit

Permalink
(cmake) Update qt macro usage (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
csparker247 authored Dec 21, 2023
1 parent d27f57a commit be77dc0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ explicitly support other platforms.
* Eigen3 3.2+
* spdlog 1.4.2+
* Boost Program Options 1.58+: Required if building applications or utilities.
* Qt 6.3+: Required if building GUI applications or utilities.
* Qt 6.5+: Required if building GUI applications or utilities.

**Optional**
* Boost Filesystem 1.58+
Expand Down Expand Up @@ -177,7 +177,7 @@ cmake -S . -B build/ -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/qt/lib/cmake/
cmake -S . -B build/ -DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake/

# Ubuntu, Qt6 installed from source
cmake -S . -B build/ -DCMAKE_PREFIX_PATH=/usr/local/Qt-6.4.2/lib/cmake/
cmake -S . -B build/ -DCMAKE_PREFIX_PATH=/usr/local/Qt-6.5.0/lib/cmake/
```

#### Unit tests
Expand Down
2 changes: 1 addition & 1 deletion apps/Canny/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if (${VC_INSTALL_APPS})

qt_generate_deploy_app_script(
TARGET ${target}
FILENAME_VARIABLE canny_gui_deploy_script
OUTPUT_SCRIPT canny_gui_deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${canny_gui_deploy_script} COMPONENT Programs)
Expand Down
2 changes: 1 addition & 1 deletion apps/Projection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (${VC_INSTALL_APPS})

qt_generate_deploy_app_script(
TARGET ${target}
FILENAME_VARIABLE projection_gui_deploy_script
OUTPUT_SCRIPT projection_gui_deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${projection_gui_deploy_script} COMPONENT Programs)
Expand Down
2 changes: 1 addition & 1 deletion apps/VC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if (${VC_INSTALL_APPS})

qt_generate_deploy_app_script(
TARGET ${target}
FILENAME_VARIABLE vc_gui_deploy_script
OUTPUT_SCRIPT vc_gui_deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${vc_gui_deploy_script} COMPONENT Programs)
Expand Down
2 changes: 1 addition & 1 deletion cmake/VCFindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ list(APPEND VC_CUSTOM_MODULES "${CMAKE_MODULE_PATH}/FindFilesystem.cmake")

### Qt6 ###
if((VC_BUILD_APPS OR VC_BUILD_UTILS) AND VC_BUILD_GUI)
find_package(Qt6 6.3 QUIET REQUIRED COMPONENTS Widgets Gui Core Network)
find_package(Qt6 6.5 QUIET REQUIRED COMPONENTS Widgets Gui Core Network)
qt_standard_project_setup()
endif()

Expand Down

0 comments on commit be77dc0

Please sign in to comment.