summaryrefslogtreecommitdiff
path: root/libs/luajit-cmake/host/minilua/CMakeLists.txt
blob: 065031fd493097f4405291a6ddf8552fc8a5bbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()