diff --git a/.gitmodules b/.gitmodules index 29132b482..553083ac5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -33,3 +33,6 @@ [submodule "External/jemalloc"] path = External/jemalloc url = https://github.com/FEX-Emu/jemalloc.git +[submodule "External/fmt"] + path = External/fmt + url = https://github.com/fmtlib/fmt.git diff --git a/CMakeLists.txt b/CMakeLists.txt index d5306ea02..2fefbc5f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,6 +116,8 @@ include_directories(External/jemalloc/pregen/include/) add_subdirectory(External/cpp-optparse/) include_directories(External/cpp-optparse/) +add_subdirectory(External/fmt/) + add_subdirectory(External/imgui/) include_directories(External/imgui/) diff --git a/External/FEXCore/Source/CMakeLists.txt b/External/FEXCore/Source/CMakeLists.txt index f92d130e1..4b9af81c8 100644 --- a/External/FEXCore/Source/CMakeLists.txt +++ b/External/FEXCore/Source/CMakeLists.txt @@ -306,7 +306,7 @@ endfunction() function(AddLibrary Name Type) add_library(${Name} ${Type} $) - target_link_libraries(${Name} pthread vixl dl xxhash FEX_jemalloc) + target_link_libraries(${Name} pthread vixl dl fmt::fmt xxhash FEX_jemalloc) set_target_properties(${Name} PROPERTIES OUTPUT_NAME FEXCore) set_target_properties(${Name} PROPERTIES C_VISIBILITY_PRESET hidden) set_target_properties(${Name} PROPERTIES CXX_VISIBILITY_PRESET hidden) diff --git a/External/fmt b/External/fmt new file mode 160000 index 000000000..7bdf0628b --- /dev/null +++ b/External/fmt @@ -0,0 +1 @@ +Subproject commit 7bdf0628b1276379886c7f6dda2cef2b3b374f0b