mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-04 17:38:23 -05:00
24 lines
602 B
CMake
Executable File
24 lines
602 B
CMake
Executable File
set(REQUIRES )
|
|
foreach(ARG IN_LISTS ${ARGS})
|
|
if (ARG STREQUAL "REQUIRED")
|
|
set(REQUIRES "REQUIRED")
|
|
endif()
|
|
endforeach()
|
|
|
|
_find_package(unofficial-lua CONFIG ${REQUIRES})
|
|
|
|
if (@COMPILE_AS_CPP@)
|
|
_find_package(unofficial-lua-cpp CONFIG ${REQUIRES})
|
|
endif()
|
|
|
|
get_filename_component(LUA_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}" PATH)
|
|
get_filename_component(LUA_INCLUDE_DIR "${LUA_INCLUDE_DIR}" PATH)
|
|
set(LUA_INCLUDE_DIR ${LUA_INCLUDE_DIR}/include)
|
|
|
|
list(APPEND LUA_LIBRARIES lua)
|
|
if (TARGET lua-cpp)
|
|
list(APPEND LUA_LIBRARIES lua-cpp)
|
|
endif()
|
|
|
|
set(LUA_FOUND 1)
|