Skip to content
Snippets Groups Projects
Commit 4ee463b4 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

fmt library added differently

parent d2791619
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ include(DuneMacros) ...@@ -12,7 +12,7 @@ include(DuneMacros)
# start a dune project with information from dune.module # start a dune project with information from dune.module
dune_project() dune_project()
dune_enable_all_packages(MODULE_LIBRARIES amdis) dune_enable_all_packages(MODULE_LIBRARIES amdis fmt)
add_subdirectory("src") add_subdirectory("src")
add_subdirectory("test") add_subdirectory("test")
...@@ -21,5 +21,7 @@ add_subdirectory("doc") ...@@ -21,5 +21,7 @@ add_subdirectory("doc")
add_subdirectory("cmake/modules") add_subdirectory("cmake/modules")
add_subdirectory("externals") add_subdirectory("externals")
target_link_libraries(amdis fmt)
# finalize the dune project, e.g. generating config.h etc. # finalize the dune project, e.g. generating config.h etc.
finalize_dune_project(GENERATE_CONFIG_H_CMAKE) finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
target_include_directories(amdis PUBLIC dune_library_add_sources(fmt SOURCES
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/externals/fmt/include>)
dune_library_add_sources(amdis SOURCES
fmt/src/format.cc fmt/src/format.cc
fmt/src/posix.cc) fmt/src/posix.cc
)
target_include_directories(fmt PUBLIC
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/externals/fmt/include>)
install(FILES install(FILES
fmt/include/fmt/core.h fmt/include/fmt/core.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment