import libtbx.load_env
Import("env_base", "env_etc")
env = env_base.Copy(
  CXXFLAGS=env_etc.cxxflags_base,
)
env.Append(LIBPATH=["#lib"])
env.Prepend(LIBS=["cctbx"])
env.Append(LIBS=env_etc.libm)
env_etc.include_registry.append(
  env=env,
  paths=["."] + env_etc.cctbx_common_includes)
for source in ["getting_started",
               "convert_ccp4_symop_lib",
               "lattice_symmetry"]:
  target = "cctbx." + source
  exe = env.Program(target="#exe_dev/"+target, source=source+".cpp")
  libtbx.env.write_dispatcher_in_bin(
    source_file=exe[0].get_abspath(),
    target_file=target)
