Files
FEX-Emu--FEX/Source/Windows/UnixLib/CMakeLists.txt
T
Ryan Houdek dbaf22372c Windows: Adds empty Linux side unix library
We are going to need a unix library. Going to take this one step at a
time without AI/ML so I fully understand all the pieces of the puzzle,
and to ensure we don't lose any functionality before we're ready.

This only ensures that we are building the Linux facing .so files for
arm64ec and wow64, but they are empty today. Next PR will be
initializing it on the PE side.
2026-06-26 19:05:08 -07:00

15 lines
514 B
CMake

cmake_minimum_required(VERSION 3.14)
project(FEXUnixLib CXX)
include(GNUInstallDirs)
function(CreateLib TargetName LibName)
add_library(${TargetName} SHARED FEXUnixLib.cpp)
set_target_properties(${TargetName} PROPERTIES OUTPUT_NAME ${LibName} PREFIX "lib" SUFFIX ".so")
target_link_libraries(${TargetName} PRIVATE rt)
install(TARGETS ${TargetName} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Runtime)
endfunction()
CreateLib(wow64fex_unixlib wow64fex)
CreateLib(arm64ecfex_unixlib arm64ecfex)