Merge pull request #383 from codicodi/add-lua-tools

[lua] install compiler and interpreter
This commit is contained in:
Alexander Karatarakis 2016-12-06 13:46:15 -08:00 committed by GitHub
commit 50a85c3159
3 changed files with 10 additions and 2 deletions

View File

@ -41,6 +41,13 @@ INSTALL ( TARGETS lua
ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
)
IF (NOT DEFINED SKIP_INSTALL_TOOLS)
ADD_EXECUTABLE ( luac src/luac.c ${SRC_LIBLUA} ) # compiler
ADD_EXECUTABLE ( luai src/lua.c ${SRC_LIBLUA} ) # interpreter
SET_TARGET_PROPERTIES ( luai PROPERTIES OUTPUT_NAME lua PDB_NAME luai )
INSTALL ( TARGETS luai luac RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/tools )
ENDIF ()
IF (NOT DEFINED SKIP_INSTALL_HEADERS)
INSTALL(
FILES
@ -51,4 +58,4 @@ IF (NOT DEFINED SKIP_INSTALL_HEADERS)
src/lauxlib.h
DESTINATION include
)
ENDIF ()
ENDIF ()

View File

@ -1,3 +1,3 @@
Source: lua
Version: 5.3.3
Version: 5.3.3-1
Description: a powerful, fast, lightweight, embeddable scripting language

View File

@ -21,6 +21,7 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS_DEBUG
-DSKIP_INSTALL_HEADERS=ON
-DSKIP_INSTALL_TOOLS=ON
)
vcpkg_install_cmake()