(core:build) fix typo in CMakeLists

cmake was failing with message:
    Unknown CMake command "add_definition".

Seems like the correct command is add_definitions