diff --git a/CMakeLists.txt b/CMakeLists.txt index 1148641..09033b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,19 @@ find_package(Qt5 COMPONENTS Concurrent REQUIRED) -add_executable(Redai main.cpp ArtConfigWindow.cpp ArtDetailWindow.h MainWindow.cpp MainWindow.h ArtModel.cpp ArtModel.h ArtDetailWindow.cpp ArtDetailWindow.h imagelabel.cpp imagelabel.h) +add_executable(Redai) +target_sources(Redai PRIVATE + src/ArtConfigWindow.cpp + src/ArtConfigWindow.h + src/ArtDetailWindow.cpp + src/ArtDetailWindow.h + src/ArtModel.cpp + src/ArtModel.h + src/imagelabel.cpp + src/imagelabel.h + src/main.cpp + src/MainWindow.cpp + src/MainWindow.h) target_link_libraries(Redai Qt5::Core Qt5::Gui diff --git a/ArtConfigWindow.cpp b/src/ArtConfigWindow.cpp similarity index 100% rename from ArtConfigWindow.cpp rename to src/ArtConfigWindow.cpp diff --git a/ArtConfigWindow.h b/src/ArtConfigWindow.h similarity index 100% rename from ArtConfigWindow.h rename to src/ArtConfigWindow.h diff --git a/ArtDetailWindow.cpp b/src/ArtDetailWindow.cpp similarity index 100% rename from ArtDetailWindow.cpp rename to src/ArtDetailWindow.cpp diff --git a/ArtDetailWindow.h b/src/ArtDetailWindow.h similarity index 100% rename from ArtDetailWindow.h rename to src/ArtDetailWindow.h diff --git a/ArtModel.cpp b/src/ArtModel.cpp similarity index 100% rename from ArtModel.cpp rename to src/ArtModel.cpp diff --git a/ArtModel.h b/src/ArtModel.h similarity index 100% rename from ArtModel.h rename to src/ArtModel.h diff --git a/MainWindow.cpp b/src/MainWindow.cpp similarity index 100% rename from MainWindow.cpp rename to src/MainWindow.cpp diff --git a/MainWindow.h b/src/MainWindow.h similarity index 100% rename from MainWindow.h rename to src/MainWindow.h diff --git a/imagelabel.cpp b/src/imagelabel.cpp similarity index 100% rename from imagelabel.cpp rename to src/imagelabel.cpp diff --git a/imagelabel.h b/src/imagelabel.h similarity index 100% rename from imagelabel.h rename to src/imagelabel.h diff --git a/main.cpp b/src/main.cpp similarity index 100% rename from main.cpp rename to src/main.cpp