1
0

Create CMake setup

This commit is contained in:
ami-sc 2024-01-14 20:12:57 -06:00
parent 3c88173ca9
commit 79b9517ee7
3 changed files with 13 additions and 1 deletions

View File

@ -10,3 +10,4 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia)
qt_standard_project_setup() qt_standard_project_setup()
add_subdirectory(src/app) add_subdirectory(src/app)
add_subdirectory(src/gui)

View File

@ -1,5 +1,10 @@
qt_add_executable(ensemble qt_add_executable(ensemble
main.cpp main.cpp
MainWindow.hpp
MainWindow.cpp
) )
target_link_libraries(ensemble PRIVATE Qt6::Widgets) target_link_libraries(ensemble PRIVATE
Qt6::Widgets
gui
)

6
src/gui/CMakeLists.txt Normal file
View File

@ -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})