mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add LibGMP
Uses system provided libgmp if found, if not it falls back to mini-gmp.
This commit is contained in:
parent
58eae43322
commit
181f7baa45
11 changed files with 4537 additions and 43 deletions
|
@ -143,6 +143,7 @@ endif(ENABLE_FREETYPE)
|
|||
|
||||
find_package(Lua REQUIRED)
|
||||
|
||||
find_package(GMP REQUIRED)
|
||||
|
||||
option(ENABLE_LEVELDB "Enable LevelDB backend" TRUE)
|
||||
set(USE_LEVELDB FALSE)
|
||||
|
@ -446,6 +447,7 @@ include_directories(
|
|||
${SOUND_INCLUDE_DIRS}
|
||||
${SQLITE3_INCLUDE_DIR}
|
||||
${LUA_INCLUDE_DIR}
|
||||
${GMP_INCLUDE_DIR}
|
||||
${JSON_INCLUDE_DIR}
|
||||
${PROJECT_SOURCE_DIR}/script
|
||||
)
|
||||
|
@ -479,6 +481,7 @@ if(BUILD_CLIENT)
|
|||
${SOUND_LIBRARIES}
|
||||
${SQLITE3_LIBRARY}
|
||||
${LUA_LIBRARY}
|
||||
${GMP_LIBRARY}
|
||||
${JSON_LIBRARY}
|
||||
${OPENGLES2_LIBRARIES}
|
||||
${PLATFORM_LIBS}
|
||||
|
@ -532,6 +535,7 @@ if(BUILD_SERVER)
|
|||
${JSON_LIBRARY}
|
||||
${GETTEXT_LIBRARY}
|
||||
${LUA_LIBRARY}
|
||||
${GMP_LIBRARY}
|
||||
${PLATFORM_LIBS}
|
||||
)
|
||||
set_target_properties(${PROJECT_NAME}server PROPERTIES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue