From ebc50b387ab209c9f9a0d92e340ac293d5697274 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 11 Mar 2023 15:58:20 -0600 Subject: build & link with luajit instead of lua5.1 --- libs/luajit-cmake/host/minilua/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 libs/luajit-cmake/host/minilua/CMakeLists.txt (limited to 'libs/luajit-cmake/host/minilua') diff --git a/libs/luajit-cmake/host/minilua/CMakeLists.txt b/libs/luajit-cmake/host/minilua/CMakeLists.txt new file mode 100755 index 0000000..065031f --- /dev/null +++ b/libs/luajit-cmake/host/minilua/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.0) + +project(minilua C) + +find_library(LIBM_LIBRARIES NAMES m) + +add_executable(minilua ${LUAJIT_DIR}/src/host/minilua.c) +if(LIBM_LIBRARIES) + target_link_libraries(minilua ${LIBM_LIBRARIES}) +endif() +if(TARGET_ARCH) + string (REPLACE ";" " " STARGET_ARCH "${TARGET_ARCH}") + set_target_properties(minilua PROPERTIES + COMPILE_FLAGS "${STARGET_ARCH}") +endif() -- cgit v1.2.1