1 add_library(pm3rrg_rdv4_lua STATIC
36 target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_COMPAT_ALL)
40 target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_MACOSX)
43 add_definitions(-D"getlocaledecpoint\(\)='.'")
44 # Same as for LUA_USE_LINUX except LUA_USE_POSIX and client-specific LUA_USE_READLINE
45 target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_DLOPEN LUA_USE_STRTODHEX LUA_USE_AFORMAT LUA_USE_LONGLONG)
46 # Same as for LUA_USE_POSIX except client-specific LUA_USE_ISATTY. LUA_USE_MKSTEMP is needed.
47 target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_MKSTEMP LUA_USE_POPEN LUA_USE_ULONGJMP LUA_USE_GMTIME_R)
49 target_compile_definitions(pm3rrg_rdv4_lua PRIVATE LUA_USE_LINUX)
50 target_link_libraries(pm3rrg_rdv4_lua INTERFACE dl)
54 target_include_directories(pm3rrg_rdv4_lua INTERFACE liblua)
55 target_compile_options(pm3rrg_rdv4_lua PRIVATE -Wall -Werror -O3)
56 set_property(TARGET pm3rrg_rdv4_lua PROPERTY POSITION_INDEPENDENT_CODE ON)