TOLOWER library names (Algorithm and Date_time look inconsistent. Maybe it they aren't? Just say so.)
remove cruft inside IF(0)
put test binaries in to CMAKE_BINARY_DIR/bin/PROJECT/ instead of the toplevel bin/ to avoid collisions.