From ffde0b15e8399896953d10ec7cf5988f65294e94 Mon Sep 17 00:00:00 2001 From: Javier Feliz Date: Thu, 28 Aug 2025 18:09:20 -0400 Subject: [PATCH] WIP --- CMakeLists.txt | 4 ++++ Makefile | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6167432..c73528f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,10 @@ pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) qt_standard_project_setup() +# Set Qt policies for proper QML module bundling +qt_policy(SET QTP0001 NEW) # Use :/qt/qml/ as default resource prefix +qt_policy(SET QTP0004 NEW) # Require qmldir files + qt_add_executable(waycast) include_directories("${CMAKE_SOURCE_DIR}/lib") diff --git a/Makefile b/Makefile index c97162e..b4d7657 100644 --- a/Makefile +++ b/Makefile @@ -8,4 +8,10 @@ run: br: bld run -all: configure bld run \ No newline at end of file +all: configure bld run + +install: bld + mkdir -p ~/bin + cp ./build/waycast ~/bin/waycast + @echo "waycast installed to ~/bin/waycast" + @echo "Make sure ~/bin is in your PATH" \ No newline at end of file