Noomi Rapace is set to co-star with Will Smith in Legendary’s “Brilliance.”

Smith recently closed his deal to star, and Legendary had been working hard to nail down his co-star over the past couple of weeks. Legendary wants the movie to go into production by August.

Julius Onah is directing, with Joe Roth, Thomas Tull and Jon Jashni producing. Palak Patel, Eric McLeod and Alex Hedlund exec produce.

Universal will distribute as part of its first-look deal with Legendary.

David Koepp penned the script based on the Marcus Sakey novel set in a world where 1% of the children born are savants (aka “brilliants”) with special powers. A federal agent who has become a master hunter of terrorists must track down a savant terrorist who intends to start civil war.

Sakey’s novel was published by Thomas and Mercer, an imprint of Amazon, in August 2013. “Brilliance” is the first of a planned three-book series, with the second book set to be released later this year.

Rapace has a handful of films set to bow this year including Summit’s “Child 44” and Fox Searchlight’s “The Drop,” both of which star Tom Hardy. She is repped by CAA and Magnolia Entertainment.