caffe/tools/CMakeLists.txt

21 строка
587 B
CMake
Исходник Обычный вид История

2014-07-01 11:56:20 +04:00
project( Tools )
# Find all source files
file(GLOB_RECURSE TOOLS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
2014-07-01 11:56:20 +04:00
2014-09-28 11:11:05 +04:00
2014-07-01 11:56:20 +04:00
# Build each source file independently
foreach(source ${TOOLS_SOURCES})
2014-07-01 11:56:20 +04:00
get_filename_component(name ${source} NAME_WE)
add_executable(${name}.bin ${source})
set_target_properties(${name}.bin PROPERTIES OUTPUT_NAME ${name})
target_link_libraries(${name}.bin ${CAFFE_STATIC_LINK})
2014-07-01 11:56:20 +04:00
### Install #################################################################################
install(TARGETS ${name}.bin DESTINATION tools)
2014-07-01 11:56:20 +04:00
endforeach(source)