зеркало из https://github.com/microsoft/cocos2d-x.git
add xxhash on linux
This commit is contained in:
Родитель
504eea0269
Коммит
66440ac335
|
@ -161,6 +161,7 @@ include_directories(
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/external/glfw3/include/${PLATFORM_FOLDER}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/freetype2/include/${PLATFORM_FOLDER}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/websockets/include/${PLATFORM_FOLDER}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/xxhash
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
|
@ -231,6 +232,9 @@ add_subdirectory(external/unzip)
|
|||
# tinyxml2 library
|
||||
add_subdirectory(external/tinyxml2)
|
||||
|
||||
# xxhas library
|
||||
add_subdirectory(external/xxhash)
|
||||
|
||||
# audio
|
||||
add_subdirectory(cocos/audio)
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
set(XXHASH
|
||||
xxhash.c
|
||||
)
|
||||
|
||||
add_library(xxhash STATIC
|
||||
${XXHASH}
|
||||
)
|
||||
|
||||
set_target_properties(xxhash
|
||||
PROPERTIES
|
||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||||
)
|
||||
|
Загрузка…
Ссылка в новой задаче