Skip to content

Commit

Permalink
Add initial version of cmakelists for qml app
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldelucena committed Aug 9, 2024
1 parent ac4aa77 commit cbe445a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
24 changes: 24 additions & 0 deletions tests-functionnal/funq-test-qml-app/CMakeLists.txt
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)
11 changes: 0 additions & 11 deletions tests-functionnal/funq-test-qml-app/funq-test-qml-app.pro

This file was deleted.

0 comments on commit cbe445a

Please sign in to comment.