Téléverser les fichiers vers "workstation-setup"
This commit is contained in:
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21)
|
|||||||
|
|
||||||
project(
|
project(
|
||||||
nixos-workstations-setup
|
nixos-workstations-setup
|
||||||
VERSION 1.0.0
|
VERSION 1.1.0
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -28,9 +28,13 @@ if(NOT DEFINED PIN_HELPER_PATH)
|
|||||||
message(FATAL_ERROR "PIN_HELPER_PATH is required")
|
message(FATAL_ERROR "PIN_HELPER_PATH is required")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT DEFINED TARGET_USER)
|
# Les chemins Nix sont générés dans un header au lieu d'être injectés avec
|
||||||
message(FATAL_ERROR "TARGET_USER is required")
|
# -D...=\"...\". Cela supprime toute ambiguïté d'échappement CMake/compilateur.
|
||||||
endif()
|
configure_file(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Config.h.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/generated/Config.h
|
||||||
|
@ONLY
|
||||||
|
)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user