forked from cocos2d/cocos2d-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix building with system prebuilt libs
- Loading branch information
Showing
4 changed files
with
112 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#.rst: | ||
# FindRecast | ||
# ------------ | ||
# | ||
# Locate RECAST library | ||
# | ||
# This module defines | ||
# | ||
# :: | ||
# | ||
# RECAST_LIBRARIES, the library to link against | ||
# RECAST_FOUND, the libraries needed to use RECAST | ||
# RECAST_INCLUDE_DIRS, where to find headers. | ||
# | ||
|
||
find_path(RECAST_INCLUDE_DIR | ||
NAMES Recast/Recast.h | ||
PATH_SUFFIXES include | ||
) | ||
|
||
find_library(RECAST_LIBRARY | ||
NAMES Recast | ||
PATH_SUFFIXES lib | ||
) | ||
|
||
set(RECAST_INCLUDE_DIRS "${RECAST_INCLUDE_DIR}") | ||
set(RECAST_LIBRARIES "${RECAST_LIBRARY}") | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) | ||
find_package_handle_standard_args(RECAST DEFAULT_MSG RECAST_LIBRARIES RECAST_INCLUDE_DIRS) | ||
|
||
mark_as_advanced(RECAST_INCLUDE_DIR RECAST_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#.rst: | ||
# Findflatbuffers | ||
# ------------ | ||
# | ||
# Locate flatbuffers library | ||
# | ||
# This module defines | ||
# | ||
# :: | ||
# | ||
# FLATBUFFERS_LIBRARIES, the library to link against | ||
# FLATBUFFERS_FOUND, the libraries needed to use flatbuffers | ||
# FLATBUFFERS_INCLUDE_DIRS, where to find headers. | ||
# | ||
|
||
find_path(FLATBUFFERS_INCLUDE_DIR | ||
NAMES flatbuffers.h | ||
PATH_SUFFIXES include include/flatbuffers | ||
) | ||
|
||
find_library(FLATBUFFERS_LIBRARY | ||
NAMES flatbuffers | ||
PATH_SUFFIXES lib | ||
) | ||
|
||
set(FLATBUFFERS_INCLUDE_DIRS "${FLATBUFFERS_INCLUDE_DIR}") | ||
set(FLATBUFFERS_LIBRARIES "${FLATBUFFERS_LIBRARY}") | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) | ||
find_package_handle_standard_args(FLATBUFFERS DEFAULT_MSG FLATBUFFERS_LIBRARIES FLATBUFFERS_INCLUDE_DIRS) | ||
|
||
mark_as_advanced(FLATBUFFERS_INCLUDE_DIR FLATBUFFERS_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#.rst: | ||
# Findxxhash | ||
# ------------ | ||
# | ||
# Locate xxhash library | ||
# | ||
# This module defines | ||
# | ||
# :: | ||
# | ||
# XXHASH_LIBRARIES, the library to link against | ||
# XXHASH_FOUND, the libraries needed to use flatbuffers | ||
# XXHASH_INCLUDE_DIRS, where to find headers. | ||
# | ||
|
||
find_path(XXHASH_INCLUDE_DIR | ||
NAMES xxhash.h xxhash.h | ||
PATH_SUFFIXES include include/xxhash | ||
) | ||
|
||
find_library(XXHASH_LIBRARY | ||
NAMES xxhash | ||
PATH_SUFFIXES lib | ||
) | ||
|
||
set(XXHASH_INCLUDE_DIRS "${XXHASH_INCLUDE_DIR}") | ||
set(XXHASH_LIBRARIES "${XXHASH_LIBRARY}") | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) | ||
find_package_handle_standard_args(XXHASH DEFAULT_MSG XXHASH_LIBRARIES XXHASH_INCLUDE_DIRS) | ||
|
||
mark_as_advanced(XXHASH_INCLUDE_DIR XXHASH_LIBRARY) |