diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-26 11:55:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-26 11:55:01 +0200 |
commit | 978661c0aa2cb39912163c445e14169fa5a5f968 (patch) | |
tree | 1f36e1adee27d850a9795769ed7f4090b12a2f9c /tracker-easy/CMakeLists.txt | |
parent | de6195fe18d8d4bfaa54690215e2adba5449ba62 (diff) |
tracker/easy: fix -Wall -Wextra -Wpedantic
Notice to: @SLion
Diffstat (limited to 'tracker-easy/CMakeLists.txt')
-rw-r--r-- | tracker-easy/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tracker-easy/CMakeLists.txt b/tracker-easy/CMakeLists.txt index 2bc773d7..670b9003 100644 --- a/tracker-easy/CMakeLists.txt +++ b/tracker-easy/CMakeLists.txt @@ -12,6 +12,12 @@ if(OpenCV_FOUND) otr_install_lib("opencv_${k}" "${opentrack-hier-pfx}") endforeach() + if(CMAKE_COMPILER_IS_GNUCXX) + add_compile_options(-Wno-sign-compare) + elseif(MSVC) + add_compile_definitions(-wd4018) + endif() + otr_module(tracker-easy) target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS}) target_link_libraries(${self} opencv_core opencv_imgproc opencv_calib3d opencv_video opencv_highgui opentrack-cv opentrack-video) |