-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
458 changed files
with
8,410 additions
and
4,405 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,33 @@ | ||
# Paddle CMake configuration file | ||
# ------- | ||
# | ||
# Finds the Paddle library | ||
# | ||
# This will define the following variables: | ||
# | ||
# PADDLE_FOUND -- True if the system has the Paddle library | ||
# PADDLE_INCLUDE_DIRS -- The include directories for Paddle | ||
# PADDLE_LIBRARIES -- Libraries to link against | ||
|
||
get_filename_component(PADDLE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}/../.." ABSOLUTE) | ||
|
||
# include directories | ||
set(PADDLE_INCLUDE_DIRS | ||
${PADDLE_INSTALL_PREFIX}/include | ||
${PADDLE_INSTALL_PREFIX}/include/third_party | ||
) | ||
|
||
# Library dependencies. | ||
set(PADDLE_LIBRARIES_DIRS ${PADDLE_INSTALL_PREFIX}/lib) | ||
link_directories(${PADDLE_LIBRARIES_DIRS}) | ||
|
||
file(GLOB PADDLE_LIBRARIES ${PADDLE_LIBRARIES_DIRS}/lib*) | ||
|
||
find_package(PythonLibs @PY_VERSION@ REQUIRED) | ||
list(APPEND PADDLE_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS}) | ||
list(APPEND PADDLE_LIBRARIES ${PYTHON_LIBRARIES}) | ||
|
||
if(@WITH_GPU@) | ||
find_package(CUDA @CUDA_VERSION@ REQUIRED) | ||
list(APPEND PADDLE_LIBRARIES ${CUDA_LIBRARIES}) | ||
endif() |
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
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
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
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
Oops, something went wrong.