diff --git a/CMakePresets.json b/CMakePresets.json index f0d759e..2acd1fc 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1,30 +1,29 @@ { - "version": 8, - "cmakeMinimumRequired": { - "major": 3, - "minor": 28, - "patch": 1 - }, - "configurePresets": [ - { - "name": "default", - "binaryDir": "${sourceDir}/build", - "generator": "Ninja", - "cacheVariables": { - "CMAKE_TOOLCHAIN_FILE": { - "type": "PATH", - "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" - }, - "VCPKG_INSTALLED_DIR": { - "type": "PATH", - "value": "${sourceDir}/../angohr-installed" - }, - "VCPKG_TARGET_TRIPLET": { - "type": "STRING", - "value": "x64-linux-shared" - } + "version": 8, + "cmakeMinimumRequired": { + "major": 3, + "minor": 28, + "patch": 1 + }, + "configurePresets": [ + { + "name": "default", + "binaryDir": "${sourceDir}/build", + "generator": "Ninja", + "cacheVariables": { + "CMAKE_TOOLCHAIN_FILE": { + "type": "PATH", + "value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + }, + "VCPKG_INSTALLED_DIR": { + "type": "PATH", + "value": "${sourceDir}/vcpkg-installed" + }, + "VCPKG_TARGET_TRIPLET": { + "type": "STRING", + "value": "x64-linux-dynamic" } } - ] - } - \ No newline at end of file + } + ] +} diff --git a/angohr/CMakeLists.txt b/angohr/CMakeLists.txt index 5ed1d08..6bd89e0 100644 --- a/angohr/CMakeLists.txt +++ b/angohr/CMakeLists.txt @@ -1,9 +1,12 @@ +find_package(fmt CONFIG REQUIRED) + add_library(core) target_sources(core PUBLIC FILE_SET CXX_MODULES FILES core.cpp ello.cpp) +target_link_libraries(core PRIVATE fmt::fmt) add_executable(angohr angohr.cpp) diff --git a/angohr/ello.cpp b/angohr/ello.cpp index efb140e..61f447c 100644 --- a/angohr/ello.cpp +++ b/angohr/ello.cpp @@ -1,6 +1,6 @@ module; -#include +#include export module core : iface.ello; @@ -13,6 +13,6 @@ export class ello { ello::ello() = default; void ello::hello() { - std::cout << "Why hello!\n"; + fmt::print("Why hello!!!\n"); } }