project( Examples )
-file(GLOB_RECURSE Examples_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
+file(GLOB_RECURSE EXAMPLES_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
-foreach(source ${Examples_SOURCES})
+foreach(source ${EXAMPLES_SOURCES})
# get file name
get_filename_component(name ${source} NAME_WE)
#else
#define CUDA_TEST_DEVICE -1
#define CMAKE_SOURCE_DIR "src/"
- #define Examples_SOURCE_DIR "examples/"
+ #define EXAMPLES_SOURCE_DIR "examples/"
#define CMAKE_EXT ""
#endif
-
#define CUDA_TEST_DEVICE @CUDA_TEST_DEVICE@
#define CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@/src/"
-#define Examples_SOURCE_DIR "@CMAKE_SOURCE_DIR@/examples/"
-#define CMAKE_EXT ".gen.cmake"
\ No newline at end of file
+#define EXAMPLES_SOURCE_DIR "@CMAKE_SOURCE_DIR@/examples/"
+#define CMAKE_EXT ".gen.cmake"
std::ofstream outfile(filename_->c_str(), std::ofstream::out);
LOG(INFO) << "Using temporary file " << *filename_;
for (int i = 0; i < 5; ++i) {
- outfile << Examples_SOURCE_DIR "images/cat.jpg " << i;
+ outfile << EXAMPLES_SOURCE_DIR "images/cat.jpg " << i;
}
outfile.close();
}
project( Tools )
# Find all source files
-file(GLOB_RECURSE Tools_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
+file(GLOB_RECURSE TOOLS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
# Build each source file independently
-foreach(source ${Tools_SOURCES})
+foreach(source ${TOOLS_SOURCES})
get_filename_component(name ${source} NAME_WE)
add_executable(${name} ${source})
target_link_libraries(${name} caffe)