This is an automated email from the ASF dual-hosted git repository.

cjolivier01 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new a937d98  [CMake] Add im2rec executable (#9456)
a937d98 is described below

commit a937d9821a8877ca7f881d33f6073185fe2da4d4
Author: Pedro Larroy <928489+lar...@users.noreply.github.com>
AuthorDate: Wed Jan 17 20:34:58 2018 +0100

    [CMake] Add im2rec executable (#9456)
---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e9aa826..1d2e8c7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -267,6 +267,8 @@ if(USE_OPENCV)
       set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-undefined")
     endif()
   endif()
+  add_executable(im2rec "tools/im2rec.cc")
+  target_link_libraries(im2rec ${BEGIN_WHOLE_ARCHIVE} mxnet 
${END_WHOLE_ARCHIVE} ${OpenCV_LIBS} ${mxnet_LINKER_LIBS} dmlc)
 else(USE_OPENCV)
   message(STATUS "OpenCV Disabled")
   add_definitions(-DMXNET_USE_OPENCV=0)

-- 
To stop receiving notification emails like this one, please contact
['"comm...@mxnet.apache.org" <comm...@mxnet.apache.org>'].

Reply via email to