diff options
author | Nikolay Bogoychev <nheart@gmail.com> | 2020-01-27 15:10:18 +0300 |
---|---|---|
committer | Nikolay Bogoychev <nheart@gmail.com> | 2020-01-27 15:10:18 +0300 |
commit | b3311f5f6342a6406379b2e8fbae5bebd279ad7c (patch) | |
tree | ec5bb4fd418078fb95d52565b0e86e145ddf5193 | |
parent | 19ab51e88c64a7385ad9c2759fd201eef3930026 (diff) |
Add an option to not compile tests
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 31e5ff4..4efe533 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/intgemm_config.h.in ${CMAKE_CURRENT_B include_directories(${CMAKE_CURRENT_BINARY_DIR}) +if(INTGEMM_DONT_BUILD_TESTS) + return() +endif() + foreach(exe benchmark biasmultiply) add_executable(${exe} benchmarks/${exe}.cc intgemm.cc) endforeach() |