test lua support
This commit is contained in:
@@ -122,7 +122,6 @@ endif()
|
||||
list(APPEND HDRS "${CMAKE_CURRENT_BINARY_DIR}/piversion.h")
|
||||
message(STATUS "Building PIP version ${PIP_VERSION} (${PIP_LIB_TYPE})")
|
||||
|
||||
|
||||
if(MINGW)
|
||||
find_package(MinGW REQUIRED)
|
||||
list(APPEND CMAKE_LIBRARY_PATH ${MINGW_LIB})
|
||||
@@ -614,11 +613,24 @@ if (NOT CROSSTOOLS)
|
||||
list(APPEND PIP_LIBS_TARGETS pip_cloud)
|
||||
endif()
|
||||
|
||||
# Check Lua support
|
||||
if(MINGW)
|
||||
set(LUA_INCLUDE_DIR ${MINGW_INCLUDE})
|
||||
endif()
|
||||
find_package(Lua REQUIRED)
|
||||
if (LUA_FOUND)
|
||||
message(STATUS "Building PIP with Lua support")
|
||||
add_definitions(-DPIP_LUA)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rd_party/lua)
|
||||
endif()
|
||||
|
||||
# Test program
|
||||
if(PIP_UTILS)
|
||||
add_executable(pip_test "main.cpp")
|
||||
target_link_libraries(pip_test pip)
|
||||
if (LUA_FOUND)
|
||||
target_link_libraries(pip_test ${LUA_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user