From 66440ac33505f74e36c5276fadc6afdc53c065b8 Mon Sep 17 00:00:00 2001 From: minggo Date: Mon, 31 Mar 2014 15:43:35 +0800 Subject: [PATCH] add xxhash on linux --- CMakeLists.txt | 4 ++++ external/xxhash/CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 external/xxhash/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 502be6ed2a..1d9302a8b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/external/xxhash/CMakeLists.txt b/external/xxhash/CMakeLists.txt new file mode 100644 index 0000000000..18f6cada0a --- /dev/null +++ b/external/xxhash/CMakeLists.txt @@ -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" +) +