macro(add_extdirectory DIR TAG)
add_subdirectory(${DIR} "${CMAKE_BINARY_DIR}/externals/${TAG}")
endmacro(add_extdirectory)
-
-set(ExternalProjectTools_FOUND TRUE)
endif()
if(NOT TARGET caffe)
- nncc_find_package(ExternalProjectTools REQUIRED)
+ nncc_include(ExternalProjectTools)
add_extdirectory("${CMAKE_CURRENT_LIST_DIR}/Caffe" caffe)
message(STATUS "Found Caffe: TRUE")
endif(NOT TARGET caffe)
endif(NOT Protobuf_FOUND)
if(NOT TARGET caffeproto)
- nncc_find_package(ExternalProjectTools REQUIRED)
+ nncc_include(ExternalProjectTools)
add_extdirectory("${CMAKE_CURRENT_LIST_DIR}/CaffeProto" caffeproto)
endif(NOT TARGET caffeproto)
endif(NOT FarmhashSource_FOUND)
if(NOT TARGET farmhash)
- nncc_find_package(ExternalProjectTools REQUIRED)
+ nncc_include(ExternalProjectTools)
add_extdirectory("${CMAKE_CURRENT_LIST_DIR}/Farmhash" farmhash)
endif(NOT TARGET farmhash)
nncc_find_package(GFlagsSource QUIET)
if(GFlagsSource_FOUND)
- nncc_find_package(ExternalProjectTools REQUIRED)
+ nncc_include(ExternalProjectTools)
# build shared multi-threading gflag library
set(BUILD_SHARED_LIBS On)
set(BUILD_STATIC_LIBS Off)
if(${BUILD_GTEST})
nncc_include(ExternalSourceTools)
- nncc_find_package(ExternalProjectTools REQUIRED)
+ nncc_include(ExternalProjectTools)
nncc_find_package(OptionTools REQUIRED)
envoption(GTEST_URL https://github.com/google/googletest/archive/release-1.8.0.tar.gz)
endif(NOT NEON2SSE_FOUND)
if(NOT TARGET tensorflowlite)
- nncc_find_package(ExternalProjectTools REQUIRED)
+ nncc_include(ExternalProjectTools)
add_extdirectory("${CMAKE_CURRENT_LIST_DIR}/TensorFlowLite" tflite)
endif(NOT TARGET tensorflowlite)