tycho: use cargo to link libraries
parent
262ab3712e
commit
5389062d44
|
@ -24,7 +24,7 @@ find_package(
|
||||||
|
|
||||||
add_library(
|
add_library(
|
||||||
maraiah-tycho-hermes
|
maraiah-tycho-hermes
|
||||||
SHARED
|
STATIC
|
||||||
$ENV{OUT_DIR}/bindings.cc
|
$ENV{OUT_DIR}/bindings.cc
|
||||||
$ENV{OUT_DIR}/bindings.h
|
$ENV{OUT_DIR}/bindings.h
|
||||||
cc/interface.h
|
cc/interface.h
|
||||||
|
|
|
@ -19,10 +19,15 @@ fn main()
|
||||||
config.cxxflag("-DTYCHO_DEBUG_ASSERTIONS");
|
config.cxxflag("-DTYCHO_DEBUG_ASSERTIONS");
|
||||||
}
|
}
|
||||||
|
|
||||||
let destination = config.build();
|
let out_dir = config.build();
|
||||||
|
let lib_dir = out_dir.join("lib");
|
||||||
|
|
||||||
println!("cargo:rustc-link-search=native={}/lib", destination.display());
|
println!("cargo:rustc-link-search=native={}", lib_dir.display());
|
||||||
println!("cargo:rustc-link-lib=dylib=maraiah-tycho-hermes");
|
println!("cargo:rustc-link-lib=static=maraiah-tycho-hermes");
|
||||||
|
println!("cargo:rustc-link-lib=dylib=Qt5Core");
|
||||||
|
println!("cargo:rustc-link-lib=dylib=Qt5Widgets");
|
||||||
|
println!("cargo:rustc-link-lib=dylib=Qt5Gui");
|
||||||
|
println!("cargo:rustc-link-lib=dylib=stdc++");
|
||||||
}
|
}
|
||||||
|
|
||||||
// EOF
|
// EOF
|
||||||
|
|
Loading…
Reference in New Issue