2023-07-19 03:18:34 -04:00
|
|
|
include(./gmod_headers.cmake)
|
2023-07-18 02:05:39 -04:00
|
|
|
|
|
|
|
add_library(lcpu_native SHARED
|
2023-07-24 06:50:18 -04:00
|
|
|
src/main.cpp
|
2023-07-24 20:17:07 -04:00
|
|
|
src/LcpuGlobals.cpp
|
2023-07-24 06:50:18 -04:00
|
|
|
src/LuaCpu.cpp
|
2023-07-24 20:17:07 -04:00
|
|
|
#src/LuaDevice.cpp
|
|
|
|
|
|
|
|
src/SourceSink.cpp
|
2023-07-18 02:05:39 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
2023-07-18 06:00:04 -04:00
|
|
|
target_link_options(lcpu_native PRIVATE
|
|
|
|
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/gmod_abi.ver"
|
|
|
|
# screw it, dude
|
|
|
|
"-static-libstdc++"
|
|
|
|
"-static-libgcc"
|
|
|
|
)
|
2023-07-18 02:05:39 -04:00
|
|
|
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
|
|
|
|