Include lua directories for all targets (fuggit)
This commit is contained in:
parent
30a955bc31
commit
4a6efb8d98
@ -14,6 +14,7 @@ find_package(ASSIMP REQUIRED)
|
|||||||
if (LUA_ENABLED)
|
if (LUA_ENABLED)
|
||||||
## Find Lua
|
## Find Lua
|
||||||
find_package(Lua REQUIRED)
|
find_package(Lua REQUIRED)
|
||||||
|
include_directories(${LUA_INCLUDE_DIR})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_library(couchlib STATIC)
|
add_library(couchlib STATIC)
|
||||||
@ -94,7 +95,6 @@ target_link_libraries(couchlib OpenGL::GL)
|
|||||||
target_link_libraries(couchlib GLEW::GLEW)
|
target_link_libraries(couchlib GLEW::GLEW)
|
||||||
if (LUA_ENABLED)
|
if (LUA_ENABLED)
|
||||||
target_link_libraries(couchlib_luascripting ${LUA_LIBRARIES})
|
target_link_libraries(couchlib_luascripting ${LUA_LIBRARIES})
|
||||||
target_include_directories(couchlib_luascripting PRIVATE "${LUA_INCLUDE_DIR}")
|
|
||||||
endif ()
|
endif ()
|
||||||
target_link_libraries(couchlib ${BULLET_LIBRARIES})
|
target_link_libraries(couchlib ${BULLET_LIBRARIES})
|
||||||
target_link_libraries(couchlib ${ASSIMP_LIBRARY})
|
target_link_libraries(couchlib ${ASSIMP_LIBRARY})
|
||||||
|
@ -12,9 +12,7 @@ if (LUA_ENABLED)
|
|||||||
LANGUAGE lua
|
LANGUAGE lua
|
||||||
SOURCES couch.i lua/helpers.i)
|
SOURCES couch.i lua/helpers.i)
|
||||||
|
|
||||||
target_include_directories(couchlua PRIVATE
|
target_include_directories(couchlua PRIVATE "${PROJECT_SOURCE_DIR}/core")
|
||||||
"${PROJECT_SOURCE_DIR}/core"
|
|
||||||
"${LUA_INCLUDE_DIR}")
|
|
||||||
|
|
||||||
swig_link_libraries(couchlua
|
swig_link_libraries(couchlua
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
Loading…
Reference in New Issue
Block a user