homelab/services/device-inventory/CMakeLists.txt
Dan V deb6c38d7b chore: commit homelab setup — deployment, services, orchestration, skill
- Add .gitignore: exclude compiled binaries, build artifacts, and Helm
  values files containing real secrets (authentik, prometheus)
- Add all Kubernetes deployment manifests (deployment/)
- Add services source code: ha-sync, device-inventory, games-console,
  paperclip, parts-inventory
- Add Ansible orchestration: playbooks, roles, inventory, cloud-init
- Add hardware specs, execution plans, scripts, HOMELAB.md
- Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill
- Remove previously-tracked inventory-cli binary from git index

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 08:10:32 +02:00

33 lines
870 B
CMake

cmake_minimum_required(VERSION 3.16)
project(device-inventory VERSION 1.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Compiler warnings
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
# Server executable
add_executable(inventory-server
src/server/main.cpp
src/server/database.cpp
src/server/server.cpp
src/server/hooks/dns_updater_hook.cpp
)
target_include_directories(inventory-server PRIVATE src)
target_link_libraries(inventory-server PRIVATE pthread)
# Client executable
add_executable(device-inventory
src/client/main.cpp
src/client/client.cpp
src/client/discovery.cpp
)
target_include_directories(device-inventory PRIVATE src)
install(TARGETS inventory-server device-inventory
RUNTIME DESTINATION bin
)