Files
FEX-Emu--FEX/Source/Tools/FEXRootFSFetcher/CMakeLists.txt
T
crueter 588fec3b89 [cmake] reduce usage of trivial variables
Trivial variables like SRCS, NAME, etc. actually do more harm than good.
They *will* make your IDE mad, and are also less readable. Remember:
verbosity is not a bad thing! Usually

Also: did a few tiny cleanups that I missed from my `endpara` PR.

Signed-off-by: crueter <crueter@eden-emu.dev>
2025-12-27 21:16:51 -05:00

18 lines
458 B
CMake

add_executable(FEXRootFSFetcher Main.cpp XXFileHash.cpp)
list(APPEND LIBS FEXCore Common JemallocDummy xxHash::xxhash)
if (CMAKE_BUILD_TYPE MATCHES "RELEASE")
target_link_options(FEXRootFSFetcher
PRIVATE
"LINKER:--gc-sections"
"LINKER:--strip-all"
"LINKER:--as-needed")
endif()
install(TARGETS FEXRootFSFetcher
RUNTIME
DESTINATION bin
COMPONENT Runtime)
target_link_libraries(FEXRootFSFetcher PRIVATE ${LIBS} ${PTHREAD_LIB})