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