Set basic CMake project layout
This commit is contained in:
parent
d4ef8bd4e4
commit
11e862b06c
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal 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
5
src/app/CMakeLists.txt
Normal 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
15
src/app/main.cpp
Normal 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();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user