-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial version of cmakelists for qml app
- Loading branch information
1 parent
ac4aa77
commit cbe445a
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
|
||
# Set the project name and target | ||
project(funq-test-qml-app) | ||
|
||
# Specify C++ standard | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Find required Qt packages | ||
find_package(Qt5 REQUIRED COMPONENTS Widgets Quick Qml) | ||
|
||
# Set the output directory for the executable | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/) | ||
|
||
# Add the main source file | ||
add_executable(${PROJECT_NAME} main.cpp) | ||
|
||
# Add the resource file | ||
qt5_add_resources(QT_RESOURCES resources.qrc) | ||
target_sources(${PROJECT_NAME} PRIVATE ${QT_RESOURCES}) | ||
|
||
# Link against Qt libraries | ||
target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Quick Qt5::Qml) |
This file was deleted.
Oops, something went wrong.