Skip to content

Commit

Permalink
link against armadillo
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Jan 5, 2025
1 parent 6b41870 commit c941e9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@ find_package(fmt REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(prometheus-cpp CONFIG REQUIRED)
find_package(cpr REQUIRED)

find_package(Armadillo REQUIRED)

include_directories(${ARMADILLO_INCLUDE_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/include)

if (NOT NIX_BUILD)
target_link_libraries(tetra-decoder-library cxxopts::cxxopts)
endif()

target_link_libraries(tetra-decoder-library ZLIB::ZLIB fmt::fmt nlohmann_json::nlohmann_json viterbi prometheus-cpp::pull cpr::cpr)
target_link_libraries(tetra-decoder-library ZLIB::ZLIB fmt::fmt nlohmann_json::nlohmann_json viterbi prometheus-cpp::pull cpr::cpr ${ARMADILLO_LIBRARIES})
target_link_libraries(tetra-decoder tetra-decoder-library)
target_link_libraries(tetra-viterbi viterbi)

Expand Down
2 changes: 2 additions & 0 deletions derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
, prometheus-cpp
, curlFull
, libcpr
, armadillo
}:
clangStdenv.mkDerivation {
name = "tetra-decoder";
Expand All @@ -23,6 +24,7 @@ clangStdenv.mkDerivation {
curlFull
prometheus-cpp
libcpr
armadillo
];

cmakeFlags = [ "-DNIX_BUILD=ON" ];
Expand Down

0 comments on commit c941e9d

Please sign in to comment.