diff options
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() |