From b4dd0052ffc60fbd642729a3e05bcadbd6edd6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 15 Jun 2021 04:35:41 +0200 Subject: degesch: pick colours based on relative luminance Replaces the inaccurate Rec. 709 luma we used to use before. This is the first feature here that requires libm, which doesn't seem to be a particularly great sacrifice. Moreover, I've rectified that the input isn't linear in sRGB, and then was even normalized wrong for the luma formula. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e3dbb7c..acbfb72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,8 @@ endif () # -lrt is only for glibc < 2.17 # -liconv may or may not be a part of libc -foreach (extra iconv rt) +# -lm may or may not be a part of libc +foreach (extra iconv rt m) find_library (extra_lib_${extra} ${extra}) if (extra_lib_${extra}) list (APPEND project_libraries ${extra_lib_${extra}}) -- cgit v1.2.3