Link directories has to be before add_library.