More changes for debian build
This commit is contained in:
parent
fbaf5ec460
commit
30a955bc31
@ -94,6 +94,7 @@ 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})
|
||||||
|
@ -10,7 +10,7 @@ void Window::Init() {
|
|||||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
|
||||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||||
glfwWindowHint(GLFW_FLOATING, GLFW_TRUE);
|
glfwWindowHint(GLFW_FLOATING, GLFW_TRUE);
|
||||||
#if GLFW_VERSION_MINOR >= 2
|
#if GLFW_VERSION_REVISION >= 2
|
||||||
glfwWindowHintString(GLFW_X11_CLASS_NAME, "Couch");
|
glfwWindowHintString(GLFW_X11_CLASS_NAME, "Couch");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -4,12 +4,17 @@ set_property(SOURCE couch.i PROPERTY CPLUSPLUS ON)
|
|||||||
set_property(SOURCE couch.i PROPERTY USE_TARGET_INCLUDE_DIRECTORIES ON)
|
set_property(SOURCE couch.i PROPERTY USE_TARGET_INCLUDE_DIRECTORIES ON)
|
||||||
|
|
||||||
if (LUA_ENABLED)
|
if (LUA_ENABLED)
|
||||||
|
## Find Lua
|
||||||
|
find_package(Lua REQUIRED)
|
||||||
|
|
||||||
swig_add_library(couchlua
|
swig_add_library(couchlua
|
||||||
TYPE STATIC
|
TYPE STATIC
|
||||||
LANGUAGE lua
|
LANGUAGE lua
|
||||||
SOURCES couch.i lua/helpers.i)
|
SOURCES couch.i lua/helpers.i)
|
||||||
|
|
||||||
target_include_directories(couchlua PRIVATE "${PROJECT_SOURCE_DIR}/core")
|
target_include_directories(couchlua PRIVATE
|
||||||
|
"${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