use --out-dir
parent
9d57058b0d
commit
9a6c2c3a66
|
@ -5,9 +5,9 @@ set(CMAKE_AUTOMOC ON)
|
|||
set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
set(RS_DIR "${CMAKE_BINARY_DIR}/maraiah-tycho-lib")
|
||||
set(RS_OUT "${RS_DIR}/build")
|
||||
set(RS_LIB "${RS_OUT}/debug/libtycho.a")
|
||||
set(RS_DIR "${CMAKE_BINARY_DIR}/rslib")
|
||||
set(RS_OUT "${CMAKE_BINARY_DIR}")
|
||||
set(RS_LIB "${RS_OUT}/libtycho.a")
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(Qt5Widgets CONFIG REQUIRED)
|
||||
|
@ -27,7 +27,7 @@ add_executable(
|
|||
add_custom_target(
|
||||
maraiah-tycho-lib ALL
|
||||
BYPRODUCTS "${RS_LIB}"
|
||||
COMMAND cargo build -p maraiah-tycho --target-dir "${RS_OUT}"
|
||||
COMMAND cargo build -p maraiah-tycho -Z unstable-options --target-dir "${RS_DIR}" --out-dir "${RS_OUT}"
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
COMMENT "Building Rust library"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue