In January 2021 we will introduce a 10 GB quota for project repositories. Higher limits for individual projects will be available on request. Please see https://doku.lrz.de/display/PUBLIC/GitLab for more information.

FindLua.cmake 551 Bytes
Newer Older
1 2 3 4 5 6
# Try to find LUA library and include path. Once done this will define:
# LUA_FOUND
# LUA_DEFINITIONS
# LUA_INCLUDE_DIR
# LUA_LIBRARY

7
IF(CAMPVIS_ENABLE_SCRIPTING)
8
    SET(LUA_DIR "${CampvisHome}/ext/lua" CACHE PATH "If Lua is not found, set this path")
9

10
    SET(LUA_INCLUDE_DIR "${LUA_DIR}/src" "${CMAKE_BINARY_DIR}/ext/lua")
11

12 13 14 15 16 17
    IF(LUA_INCLUDE_DIR)
        SET(LUA_LIBRARY liblua)
        SET(LUA_FOUND TRUE)
    ELSE()
        SET(LUA_FOUND FALSE)
    ENDIF()
18
ENDIF(CAMPVIS_ENABLE_SCRIPTING)
19 20

MARK_AS_ADVANCED(LUA_DIR LUA_INCLUDE_DIR LUA_LIBRARY)