1
0

Set basic CMake project layout

This commit is contained in:
ami-sc 2024-01-14 19:02:30 -06:00
parent d4ef8bd4e4
commit 11e862b06c
3 changed files with 32 additions and 0 deletions

12
CMakeLists.txt Normal file
View File

@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.27)
project(Ensemble VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia)
qt_standard_project_setup()
add_subdirectory(src/app)

5
src/app/CMakeLists.txt Normal file
View File

@ -0,0 +1,5 @@
qt_add_executable(ensemble
main.cpp
)
target_link_libraries(ensemble PRIVATE Qt6::Widgets)

15
src/app/main.cpp Normal file
View File

@ -0,0 +1,15 @@
#include <QApplication>
#include <QMainWindow>
int main (int argc, char* argv[])
{
QApplication Ensemble(argc, argv);
QCoreApplication::setApplicationName("Ensemble");
QCoreApplication::setApplicationVersion("0.1");
QMainWindow main_window {};
main_window.show();
return Ensemble.exec();
}