Create CMake setup
This commit is contained in:
parent
3c88173ca9
commit
79b9517ee7
@ -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)
|
||||||
|
@ -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
6
src/gui/CMakeLists.txt
Normal 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})
|
Loading…
Reference in New Issue
Block a user