# Configuration
set(TEST_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/test) # test executables are going to be placed there
-set(TEST_EXT .bin) # test executable extension
+set(TEST_EXT .testbin) # test executable extension
set(ALL_TEST test${TEST_EXT}) # name of an executable comprising of all tests
set(RUN_TEST runtest) # dummy target for running tests
# Build each source file independently
foreach(source ${TOOLS_SOURCES})
get_filename_component(name ${source} NAME_WE)
- add_executable(${name} ${source})
- target_link_libraries(${name} caffe)
+ add_executable(${name}.bin ${source})
+ set_target_properties(${name}.bin PROPERTIES OUTPUT_NAME ${name})
+ target_link_libraries(${name}.bin caffe)
### Install #################################################################################
- install(TARGETS ${name} DESTINATION tools)
+ install(TARGETS ${name}.bin DESTINATION tools)
endforeach(source)