If your project depends on the external libraries, you should first install them with opam.
Assuming your dependencies are foo and bar and the main entry point of your project is foobar.ml you can then build a bytecode executable with
ocamlbuild -use-ocamlfind -pkgs 'foo,bar' foobar.byte
Warnin...