Files
FEX/Source/Tools/FEXRootFSFetcher/CMakeLists.txt
T
crueter 3021b41190 CMake: too-long-line fixes, options reorg, and some cleanups
- Try to avoid lines >140 characters.
  - I intentionally left out the `unittests` directory. That is a
    behemoth.
  - Everything was done ad-hoc in accordance with what I believe is most
    readable, anything changed is up for debate.
  - Added a step to PR code format that enforces this.
- Reorganize options a little bit, and add some spacing.
- Small cleanups here and there, e.g. multi-arg target commands and
  `Threads::Threads` instead of PTHREAD_LIB.

Verified long lines via:

```sh
$ find \( -name 'CMakeLists.txt' -o -name '*.cmake*' \) -exec wc -L {} \; | grep -ve "unittests\|External" | while read -r line; do [ "$(echo "$line" | cut -d' ' -f1)" -gt 140 ] && echo $line; done

290 ./Source/Tools/FEXInterpreter/CMakeLists.txt
```

FEXInterpreter will require some more invasive changes to get those long
lines out of there.

Signed-off-by: crueter <[email protected]>
2026-11-02 15:27:48 -05:00

11 lines
302 B
CMake

add_executable(FEXRootFSFetcher Main.cpp XXFileHash.cpp)
list(APPEND LIBS FEXCore Common JemallocDummy xxHash::xxhash Threads::Threads)
LinkerGC(FEXRootFSFetcher)
install(TARGETS FEXRootFSFetcher RUNTIME
DESTINATION bin
COMPONENT Runtime)
target_link_libraries(FEXRootFSFetcher PRIVATE ${LIBS})