diff --git a/CMakeLists.txt b/CMakeLists.txt index bbdb8de..ac02ea1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,15 +19,20 @@ qt_add_executable(appSolitare qml.qrc ) +file(GLOB_RECURSE SOURCES + src/*.cpp + src/*.h +) + qt_add_qml_module(appSolitare URI Solitare VERSION 1.0 SOURCES - playingcard.h playingcard.cpp - gamestate.h gamestate.cpp - columnslot.h columnslot.cpp + ${SOURCES} ) +target_include_directories(appSolitare PRIVATE ${CMAKE_SOURCE_DIR}/src) + # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1. # If you are developing for iOS or macOS you should consider setting an # explicit, fixed bundle identifier manually though. diff --git a/columnslot.cpp b/src/columnslot.cpp similarity index 100% rename from columnslot.cpp rename to src/columnslot.cpp diff --git a/columnslot.h b/src/columnslot.h similarity index 100% rename from columnslot.h rename to src/columnslot.h diff --git a/gamestate.cpp b/src/gamestate.cpp similarity index 100% rename from gamestate.cpp rename to src/gamestate.cpp diff --git a/gamestate.h b/src/gamestate.h similarity index 100% rename from gamestate.h rename to src/gamestate.h diff --git a/playingcard.cpp b/src/playingcard.cpp similarity index 100% rename from playingcard.cpp rename to src/playingcard.cpp diff --git a/playingcard.h b/src/playingcard.h similarity index 100% rename from playingcard.h rename to src/playingcard.h