1 #===============================================================================
2 # Copyright 2016-2018 Intel Corporation
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #===============================================================================
21 # propagate EXAMPLE specific flags
22 append(CMAKE_C_FLAGS "${CMAKE_EXAMPLE_CCXX_FLAGS}")
23 append(CMAKE_CXX_FLAGS "${CMAKE_EXAMPLE_CCXX_FLAGS}")
25 # propagate sanitizer flags
26 append(CMAKE_C_FLAGS "${CMAKE_CCXX_SANITIZER_FLAGS}")
27 append(CMAKE_CXX_FLAGS "${CMAKE_CCXX_SANITIZER_FLAGS}")
29 include_directories(${PROJECT_SOURCE_DIR}/include)
33 register_exe(simple-net-c simple_net.c "test")
34 register_exe(simple-net-cpp simple_net.cpp "test")
35 register_exe(simple-training-net-c simple_training_net.c "test" ${LIBM})
36 register_exe(simple-training-net-cpp simple_training_net.cpp "test" ${LIBM})
37 register_exe(simple-net-int8-cpp simple_net_int8.cpp "test")
38 register_exe(simple-rnn-cpp simple_rnn.cpp "test")
39 register_exe(simple-rnn-int8-cpp simple_rnn_int8.cpp "test")
40 register_exe(simple-rnn-training-cpp simple_rnn_training.cpp "test")