tools/corrosion/test/cbindgen/rust2cpp/CMakeLists.txt
branchtransitional_engine
changeset 16021 6a3dc15b78b9
equal deleted inserted replaced
16009:7544a7d7c819 16021:6a3dc15b78b9
       
     1 cmake_minimum_required(VERSION 3.15)
       
     2 project(test_project VERSION 0.1.0)
       
     3 include(../../test_header.cmake)
       
     4 
       
     5 corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml)
       
     6 corrosion_experimental_cbindgen(TARGET rust_lib HEADER_NAME "rust-lib.h")
       
     7 
       
     8 add_executable(cpp-exe main.cpp)
       
     9 set_property(TARGET cpp-exe PROPERTY CXX_STANDARD 11)
       
    10 target_link_libraries(cpp-exe PUBLIC rust_lib)