Install header files for Lua/LuaJIT and tolua++ 3rd party libraries.
Fixes #610.
This commit is contained in:
parent
2e861de366
commit
8682ba781a
@ -63,6 +63,10 @@ if (CMAKE_PROJECT_NAME STREQUAL Urho3D AND TARGET Urho3D)
|
||||
# This is more practical than patching its header files in many places to make them work with relative path
|
||||
list (APPEND URHO3D_INCLUDE_DIRS ${URHO3D_HOME}/include/${PATH_SUFFIX}/ThirdParty/Bullet)
|
||||
endif ()
|
||||
if (URHO3D_LUA)
|
||||
# ditto for Lua/LuaJIT
|
||||
list (APPEND URHO3D_INCLUDE_DIRS ${URHO3D_HOME}/include/${PATH_SUFFIX}/ThirdParty/Lua${JIT})
|
||||
endif ()
|
||||
set (URHO3D_LIBRARIES Urho3D)
|
||||
set (FOUND_MESSAGE "Found Urho3D: as CMake target")
|
||||
else ()
|
||||
@ -112,6 +116,9 @@ else ()
|
||||
if (URHO3D_PHYSICS)
|
||||
list (APPEND URHO3D_INCLUDE_DIRS ${URHO3D_INCLUDE_DIRS}/ThirdParty/Bullet)
|
||||
endif ()
|
||||
if (URHO3D_LUA)
|
||||
list (APPEND URHO3D_INCLUDE_DIRS ${URHO3D_INCLUDE_DIRS}/ThirdParty/Lua${JIT})
|
||||
endif ()
|
||||
if (NOT URHO3D_HOME)
|
||||
# URHO3D_HOME is not set when using SDK installed on system-wide default location, so set it now
|
||||
get_filename_component (PATH ${PATH} PATH)
|
||||
|
2
Source/ThirdParty/Lua/CMakeLists.txt
vendored
2
Source/ThirdParty/Lua/CMakeLists.txt
vendored
@ -30,7 +30,7 @@ define_source_files (GLOB_CPP_PATTERNS src/*.c GLOB_H_PATTERNS src/*.h EXCLUDE_P
|
||||
setup_library ()
|
||||
|
||||
# Install headers for building the Urho3D library
|
||||
install_header_files (DIRECTORY src/ DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty/Lua FILES_MATCHING PATTERN *.h BUILD_TREE_ONLY) # Note: the trailing slash is significant
|
||||
install_header_files (DIRECTORY src/ DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty/Lua FILES_MATCHING PATTERN *.h) # Note: the trailing slash is significant
|
||||
|
||||
# Setup additional Lua standalone targets (these targets can be transfered and executed on an embedded device, such as Raspberry Pi and Android)
|
||||
if (NOT IOS)
|
||||
|
2
Source/ThirdParty/LuaJIT/CMakeLists.txt
vendored
2
Source/ThirdParty/LuaJIT/CMakeLists.txt
vendored
@ -401,7 +401,7 @@ set (INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/generated)
|
||||
setup_library ()
|
||||
|
||||
# Install headers for building the Urho3D library
|
||||
install_header_files (DIRECTORY src/ DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty/LuaJIT FILES_MATCHING PATTERN *.h BUILD_TREE_ONLY) # Note: the trailing slash is significant
|
||||
install_header_files (DIRECTORY src/ DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty/LuaJIT FILES_MATCHING PATTERN *.h *.hpp) # Note: the trailing slash is significant
|
||||
|
||||
# Setup additional Lua standalone target (this target can be transfered and executed on an embedded device, such as Raspberry Pi and Android)
|
||||
if (NOT IOS)
|
||||
|
@ -33,4 +33,4 @@ set (INCLUDE_DIRS ../../include ../../../Lua${JIT}/src)
|
||||
setup_library ()
|
||||
|
||||
# Install headers for building the Urho3D library
|
||||
install_header_files (DIRECTORY ../../include/ DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty/toluapp FILES_MATCHING PATTERN *.h BUILD_TREE_ONLY) # Note: the trailing slash is significant
|
||||
install_header_files (DIRECTORY ../../include/ DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty/toluapp FILES_MATCHING PATTERN *.h) # Note: the trailing slash is significant
|
||||
|
Loading…
Reference in New Issue
Block a user