summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-09-10 19:34:24 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-09-10 20:36:12 +0200
commitc7a2b5b32b9dd27e79a5f3079c51cfd7197e9a6a (patch)
tree3c0055c229ab3209b3659ae90cc9c3477d39ce61
parentc8b065530a76b6e2344aba146d20ad8ab8d01add (diff)
Add dependency: fmt
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--default.nix2
-rw-r--r--shell.nix2
-rw-r--r--src/CMakeLists.txt5
3 files changed, 6 insertions, 3 deletions
diff --git a/default.nix b/default.nix
index 8fc5d24..8351443 100644
--- a/default.nix
+++ b/default.nix
@@ -9,7 +9,7 @@ pkgs.stdenv.mkDerivation {
src = filterSource ./.;
nativeBuildInputs = with pkgs; [ cmake pkg-config ];
- buildInputs = with pkgs; [ docopt_cpp ];
+ buildInputs = with pkgs; [ docopt_cpp fmt_7 ];
buildPhase = ''
mkdir build
diff --git a/shell.nix b/shell.nix
index 99685a1..5889bce 100644
--- a/shell.nix
+++ b/shell.nix
@@ -5,6 +5,6 @@ pkgs.mkShell {
nativeBuildInputs = with pkgs; [ cmake pkg-config ];
buildInputs = with pkgs; [
- docopt_cpp
+ docopt_cpp fmt_7
];
}
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 97587c4..f944c9f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -11,7 +11,10 @@ set(SOURCE_FILES
find_package(docopt COMPONENTS CXX REQUIRED)
include_directories(${DOCOPT_INCLUDE_DIRS})
+find_package(fmt)
+include_directories(${fmt_INCLUDE_DIRS})
+
add_executable(getif ${SOURCE_FILES})
-target_link_libraries(${PROJECT_NAME} docopt)
+target_link_libraries(${PROJECT_NAME} docopt fmt::fmt)
install(TARGETS getif DESTINATION ${GETIF_INSTALL_BIN_DIR})