-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (24 loc) · 868 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
31
32
33
34
35
cmake_minimum_required(VERSION 3.23)
project(CppProjectTemplate VERSION 1.0.0 LANGUAGES C CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(${CMAKE_BINARY_DIR}/generators/conan_toolchain.cmake)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_options("-g")
else()
add_compile_options("-O3")
endif()
option(ENABLE_SANITIZE_ADDR "Enable address sanitize." ON)
option(ENABLE_SANITIZE_UNDEF "Enable undefined sanitize." ON)
option(ENABLE_SANITIZE_LEAK "Enable leak sanitize (Gcc/Clang only)." ON)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/)
if(ENABLE_SANITIZE_ADDR OR ENABLE_SANITIZE_UNDEF)
include(Sanitizers)
add_sanitizer_flags()
endif()
find_package(OpenCV)
find_package(tensorflowlite)
set(LIBRARY_NAME blazeface)
file(COPY models DESTINATION ./app/)
file(COPY data DESTINATION ./app/)
add_subdirectory(src)
add_subdirectory(app)