File debian.rules of Package idle_detect
#!/usr/bin/make -f
# Enable verbose output from dh commands
export DH_VERBOSE=1
# Default sequence: clean, configure, build, install, etc.
# Tell dh that this is a CMake project.
%:
dh $@ --buildsystem=cmake
# --- Optional Overrides (Uncomment and modify if needed) ---
# Example: Force a specific compiler if needed for the target distro
# override_dh_auto_configure:
# dh_auto_configure -- -DCMAKE_CXX_COMPILER=g++-13
# Example: Add build flags (though CMAKE_CXX_FLAGS in CMakeLists.txt is usually better)
# override_dh_auto_build:
# dh_auto_build -- CXXFLAGS="-O3"
# Example: Manually invoke Doxygen if not done via CMake build target
# override_dh_auto_build-arch:
# dh_auto_build
# doxygen Doxyfile # Assuming Doxyfile is configured correctly at this stage