diff options
author | philkr <philkr@users.noreply.github.com> | 2015-02-18 08:38:33 -0800 |
---|---|---|
committer | philkr <philkr@users.noreply.github.com> | 2015-02-18 09:27:13 -0800 |
commit | d1238e14fa4ef7089d85e91cf3339699b89590e0 (patch) | |
tree | d73825620991f5fead758e039d85aa417d74b3e9 /examples | |
parent | 5e64f5a7d174fc0a4e503c56700db291cb68e26f (diff) | |
download | caffeonacl-d1238e14fa4ef7089d85e91cf3339699b89590e0.tar.gz caffeonacl-d1238e14fa4ef7089d85e91cf3339699b89590e0.tar.bz2 caffeonacl-d1238e14fa4ef7089d85e91cf3339699b89590e0.zip |
Changing CMAKE_SOURCE/BINARY_DIR to PROJECT_SOURCE/BINARY_DIR
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 4df14afb..f29fc7e5 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,4 +1,4 @@ -file(GLOB_RECURSE examples_srcs "${CMAKE_SOURCE_DIR}/examples/*.cpp") +file(GLOB_RECURSE examples_srcs "${PROJECT_SOURCE_DIR}/examples/*.cpp") foreach(source_file ${examples_srcs}) # get file name @@ -14,7 +14,7 @@ foreach(source_file ${examples_srcs}) # set back RUNTIME_OUTPUT_DIRECTORY set_target_properties(${name} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/examples/${folder}") + RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/examples/${folder}") caffe_set_solution_folder(${name} examples) @@ -24,7 +24,7 @@ foreach(source_file ${examples_srcs}) if(UNIX OR APPLE) # Funny command to make tutorials work # TODO: remove in future as soon as naming is standartaized everywhere - set(__outname ${CMAKE_BINARY_DIR}/examples/${folder}/${name}${CAffe_POSTFIX}) + set(__outname ${PROJECT_BINARY_DIR}/examples/${folder}/${name}${CAffe_POSTFIX}) add_custom_command(TARGET ${name} POST_BUILD COMMAND ln -sf "${__outname}" "${__outname}.bin") endif() |