Skip to content

Commit

Permalink
Fixes mlcpp#24
Browse files Browse the repository at this point in the history
Adds custom make targets: examples and benchmarks

From now,
`make` or `make all` will compile examples/ and benchmarks/
`make examples` will compile examples/
`make benchmarks` will compile benchmarks/

Also, `benchmark` folder has been renamed to `benchmarks`.
  • Loading branch information
ashok-arora committed Dec 19, 2020
1 parent fbc64d7 commit 1da5aa8
Show file tree
Hide file tree
Showing 37 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@ include_directories(${Matrix_SOURCE_DIR}/lib/benchmark/include)
link_directories(${Matrix_SOURCE_DIR}/lib/benchmark/build/src)


add_custom_target(example)
add_custom_target(examples)
add_subdirectory(examples)

add_custom_target(bench)
add_subdirectory(benchmark)

# make -> make all
# make example
# make bench
# make test
# make doc
add_custom_target(benchmarks)
add_subdirectory(benchmarks)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion benchmark/CMakeLists.txt → benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_dependencies(example
add_dependencies(benchmarks
BM_abs
BM_addition
BM_all
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_dependencies(example
add_dependencies(examples
abs
addition
argmin_argmax
Expand Down

0 comments on commit 1da5aa8

Please sign in to comment.