gmod-lcpu/native/projects/lcpu/CMakeLists.txt

28 lines
495 B
CMake
Raw Normal View History

2023-07-19 03:18:34 -04:00
include(./gmod_headers.cmake)
add_library(lcpu_native SHARED
2023-07-24 06:50:18 -04:00
src/main.cpp
src/LcpuGlobals.cpp
2023-07-24 06:50:18 -04:00
src/LuaCpu.cpp
2023-07-25 06:46:52 -04:00
src/LuaDevice.cpp
src/SourceSink.cpp
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_options(lcpu_native PRIVATE
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/gmod_abi.ver"
# screw it, dude
"-static-libstdc++"
"-static-libgcc"
)
endif()
target_link_libraries(lcpu_native
gmod_headers
lucore::lucore
riscv::riscv
)
set_gmod_suffix_prefix(lcpu_native)
2023-07-18 02:08:00 -04:00