mirror of
https://github.com/autistic-symposium/tensorflow-for-deep-learning-py.git
synced 2025-05-11 19:24:57 -04:00
Clean up to arxiv (and move any ml related to the agentic repo) (#8)
This commit is contained in:
parent
f4d00ced80
commit
726e24b74d
55 changed files with 4345 additions and 718 deletions
31
Deep_Art/examples/CMakeLists.txt
Normal file
31
Deep_Art/examples/CMakeLists.txt
Normal file
|
@ -0,0 +1,31 @@
|
|||
file(GLOB_RECURSE examples_srcs "${PROJECT_SOURCE_DIR}/examples/*.cpp")
|
||||
|
||||
foreach(source_file ${examples_srcs})
|
||||
# get file name
|
||||
get_filename_component(name ${source_file} NAME_WE)
|
||||
|
||||
# get folder name
|
||||
get_filename_component(path ${source_file} PATH)
|
||||
get_filename_component(folder ${path} NAME_WE)
|
||||
|
||||
add_executable(${name} ${source_file})
|
||||
target_link_libraries(${name} ${Caffe_LINK})
|
||||
caffe_default_properties(${name})
|
||||
|
||||
# set back RUNTIME_OUTPUT_DIRECTORY
|
||||
set_target_properties(${name} PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/examples/${folder}")
|
||||
|
||||
caffe_set_solution_folder(${name} examples)
|
||||
|
||||
# install
|
||||
install(TARGETS ${name} DESTINATION bin)
|
||||
|
||||
if(UNIX OR APPLE)
|
||||
# Funny command to make tutorials work
|
||||
# TODO: remove in future as soon as naming is standartaized everywhere
|
||||
set(__outname ${PROJECT_BINARY_DIR}/examples/${folder}/${name}${Caffe_POSTFIX})
|
||||
add_custom_command(TARGET ${name} POST_BUILD
|
||||
COMMAND ln -sf "${__outname}" "${__outname}.bin")
|
||||
endif()
|
||||
endforeach()
|
Loading…
Add table
Add a link
Reference in a new issue