File tree Expand file tree Collapse file tree 3 files changed +31
-29
lines changed Expand file tree Collapse file tree 3 files changed +31
-29
lines changed Original file line number Diff line number Diff line change 11{
2- "version" : 8 ,
3- "cmakeMinimumRequired" : {
4- "major" : 3 ,
5- "minor" : 28 ,
6- "patch" : 1
7- },
8- "configurePresets" : [
9- {
10- "name" : " default" ,
11- "binaryDir" : " ${sourceDir}/build" ,
12- "generator" : " Ninja" ,
13- "cacheVariables" : {
14- "CMAKE_TOOLCHAIN_FILE" : {
15- "type" : " PATH" ,
16- "value" : " $env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
17- },
18- "VCPKG_INSTALLED_DIR" : {
19- "type" : " PATH" ,
20- "value" : " ${sourceDir}/../angohr-installed"
21- },
22- "VCPKG_TARGET_TRIPLET" : {
23- "type" : " STRING" ,
24- "value" : " x64-linux-shared"
25- }
2+ "version" : 8 ,
3+ "cmakeMinimumRequired" : {
4+ "major" : 3 ,
5+ "minor" : 28 ,
6+ "patch" : 1
7+ },
8+ "configurePresets" : [
9+ {
10+ "name" : " default" ,
11+ "binaryDir" : " ${sourceDir}/build" ,
12+ "generator" : " Ninja" ,
13+ "cacheVariables" : {
14+ "CMAKE_TOOLCHAIN_FILE" : {
15+ "type" : " PATH" ,
16+ "value" : " $env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
17+ },
18+ "VCPKG_INSTALLED_DIR" : {
19+ "type" : " PATH" ,
20+ "value" : " ${sourceDir}/vcpkg-installed"
21+ },
22+ "VCPKG_TARGET_TRIPLET" : {
23+ "type" : " STRING" ,
24+ "value" : " x64-linux-dynamic"
2625 }
2726 }
28- ]
29- }
30-
27+ }
28+ ]
29+ }
Original file line number Diff line number Diff line change 1+ find_package (fmt CONFIG REQUIRED)
2+
13add_library (core)
24target_sources (core
35 PUBLIC
46 FILE_SET CXX_MODULES FILES
57 core.cpp
68 ello.cpp)
9+ target_link_libraries (core PRIVATE fmt::fmt)
710
811add_executable (angohr angohr.cpp)
912
Original file line number Diff line number Diff line change 11module ;
22
3- #include < iostream >
3+ #include < fmt/core.h >
44
55export module core : iface.ello;
66
@@ -13,6 +13,6 @@ export class ello {
1313
1414ello::ello () = default ;
1515void ello::hello () {
16- std::cout << " Why hello!\n " ;
16+ fmt::print ( " Why hello!!! \n " ) ;
1717}
1818}
You can’t perform that action at this time.
0 commit comments