mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 15:00:53 +02:00
25 lines
532 B
CMake
25 lines
532 B
CMake
set(NAME FEXRootFSFetcher)
|
|
set(SRCS Main.cpp
|
|
XXFileHash.cpp)
|
|
|
|
add_executable(${NAME} ${SRCS})
|
|
list(APPEND LIBS FEXCore Common xxHash::xxhash)
|
|
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_SOURCE_DIR}/Source/)
|
|
|
|
if (CMAKE_BUILD_TYPE MATCHES "RELEASE")
|
|
target_link_options(${NAME}
|
|
PRIVATE
|
|
"LINKER:--gc-sections"
|
|
"LINKER:--strip-all"
|
|
"LINKER:--as-needed"
|
|
)
|
|
endif()
|
|
|
|
install(TARGETS ${NAME}
|
|
RUNTIME
|
|
DESTINATION bin
|
|
COMPONENT runtime)
|
|
|
|
target_link_libraries(${NAME} PRIVATE ${LIBS} ${PTHREAD_LIB})
|