Created
December 22, 2019 13:28
-
-
Save JlnWntr/a367ab40dc866127a8856be289df2955 to your computer and use it in GitHub Desktop.
Download and build latest liblua via CMake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.10) | |
include(ExternalProject) | |
ExternalProject_Add(lua | |
URL "https://www.lua.org/ftp/lua-5.3.5.tar.gz" | |
CONFIGURE_COMMAND "" | |
BUILD_COMMAND make generic | |
BUILD_ALWAYS true | |
BUILD_IN_SOURCE true | |
INSTALL_COMMAND "" | |
) | |
add_library(liblua STATIC IMPORTED) | |
ExternalProject_Get_property(lua SOURCE_DIR) | |
message("liblua will be found at \'${SOURCE_DIR}/src\'") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment