forked from jatinchowdhury18/RTNeural
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (25 loc) · 824 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.11)
project(RTNeural VERSION 1.0.0)
include(cmake/CXXStandard.cmake)
include(cmake/Sanitizers.cmake)
add_subdirectory(RTNeural)
include(cmake/SIMDExtensions.cmake)
include(cmake/ChooseBackend.cmake)
option(BUILD_TESTS "Build RTNeural accuracy tests" OFF)
if(BUILD_TESTS)
message(STATUS "RTNeural -- Configuring tests...")
include(cmake/CPM.cmake)
include(cmake/Testing.cmake)
rtneural_setup_testing()
add_subdirectory(tests)
endif()
option(BUILD_BENCH "Build RTNeural benchmarks" OFF)
if(BUILD_BENCH)
message(STATUS "RTNeural -- Configuring benchmarks...")
add_subdirectory(bench)
endif()
option(BUILD_EXAMPLES "Build RTNeural examples" OFF)
if(BUILD_EXAMPLES)
message(STATUS "RTNeural -- Configuring examples...")
add_subdirectory(examples)
endif()