Externals: Add fmt as an external

Begins the process of addressing issue #146.

This is separated off, so that others can make use of fmt for other
purposes (general localized non-sucky string formatting), while the
logging rework is being tackled.
This commit is contained in:
Lioncash 2021-05-20 13:18:36 -04:00
parent 370f36c8f7
commit 37a33bf127
4 changed files with 7 additions and 1 deletions

3
.gitmodules vendored
View File

@ -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

View File

@ -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/)

View File

@ -306,7 +306,7 @@ endfunction()
function(AddLibrary Name Type)
add_library(${Name} ${Type} $<TARGET_OBJECTS:${PROJECT_NAME}_object>)
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)

1
External/fmt vendored Submodule

@ -0,0 +1 @@
Subproject commit 7bdf0628b1276379886c7f6dda2cef2b3b374f0b