diff options
author | sanine <sanine.not@pm.me> | 2023-03-11 15:58:20 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-03-11 15:58:20 -0600 |
commit | ebc50b387ab209c9f9a0d92e340ac293d5697274 (patch) | |
tree | ea8c8b3677a18c994d2b9d33dbef3461dcf18113 /libs/luajit-cmake/host/minilua | |
parent | c2329b4c8258baa9429c77566c9def97d00e96d7 (diff) |
build & link with luajit instead of lua5.1
Diffstat (limited to 'libs/luajit-cmake/host/minilua')
-rwxr-xr-x | libs/luajit-cmake/host/minilua/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
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() |