From 79b9517ee7244981ef59285d0510a51e8c648368 Mon Sep 17 00:00:00 2001 From: ami-sc Date: Sun, 14 Jan 2024 20:12:57 -0600 Subject: [PATCH] Create CMake setup --- CMakeLists.txt | 1 + src/app/CMakeLists.txt | 7 ++++++- src/gui/CMakeLists.txt | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/gui/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c50719..5c56ad6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,3 +10,4 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia) qt_standard_project_setup() add_subdirectory(src/app) +add_subdirectory(src/gui) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 25e84c9..ee9adb8 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -1,5 +1,10 @@ qt_add_executable(ensemble main.cpp + MainWindow.hpp + MainWindow.cpp ) -target_link_libraries(ensemble PRIVATE Qt6::Widgets) +target_link_libraries(ensemble PRIVATE + Qt6::Widgets + gui +) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt new file mode 100644 index 0000000..e81575d --- /dev/null +++ b/src/gui/CMakeLists.txt @@ -0,0 +1,6 @@ +qt_add_library(gui STATIC + TopBar.cpp +) + +target_link_libraries(gui PRIVATE Qt6::Widgets) +target_include_directories(gui INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})