Files
FEX-Emu--FEX/Source/Tools/FEXOfflineCompiler/CMakeLists.txt
T

26 lines
496 B
CMake

add_executable(FEXOfflineCompiler Main.cpp)
target_link_libraries(FEXOfflineCompiler
PRIVATE
Common
CommonTools
cpp-optparse
FEXCore
JemallocLibs
LinuxEmulation
${PTHREAD_LIB}
fmt::fmt)
if (CMAKE_BUILD_TYPE MATCHES "RELEASE")
target_link_options(FEXOfflineCompiler
PRIVATE
"LINKER:--gc-sections"
"LINKER:--strip-all"
"LINKER:--as-needed")
endif()
install(TARGETS FEXOfflineCompiler
RUNTIME
DESTINATION bin
COMPONENT Runtime)