Skip to content

Commit b3e86db

Browse files
committed
FindTensorFlow
1 parent add0bd2 commit b3e86db

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

FindTensorFlow.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FIND_PATH(TENSORFLOW_INCLUDE_DIRS NAMES tensorflow/c PATHS
2+
/usr/include
3+
/opt/local/include
4+
/usr/local/include
5+
)
6+
7+
FIND_LIBRARY(TENSORFLOW_LIBRARIES NAMES tensorflow PATHS
8+
/usr/local/lib
9+
/opt/local/lib
10+
/usr/lib
11+
)
12+
13+
# handle the QUIETLY and REQUIRED arguments and set LZ4_FOUND to TRUE if
14+
# all listed variables are TRUE
15+
INCLUDE(FindPackageHandleStandardArgs)
16+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(tensorflow
17+
REQUIRED_VARS TENSORFLOW_LIBRARIES TENSORFLOW_INCLUDE_DIRS
18+
VERSION_VAR TENSORFLOW_VERSION_STRING)
19+
MARK_AS_ADVANCED(TENSORFLOW_INCLUDE_DIRS)

0 commit comments

Comments
 (0)