tools/corrosion/test/features/features/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 FEATURES thirdfeature ALL_FEATURES)
       
     6 
       
     7 add_executable(features-cpp-exe main.cpp)
       
     8 target_link_libraries(features-cpp-exe PUBLIC rust_feature_lib)
       
     9 
       
    10 corrosion_set_features(rust_feature_lib
       
    11         ALL_FEATURES OFF
       
    12         NO_DEFAULT_FEATURES
       
    13         FEATURES
       
    14             $<TARGET_PROPERTY:features-cpp-exe,app_features>
       
    15 )
       
    16 
       
    17 set_property(
       
    18     TARGET features-cpp-exe
       
    19     APPEND
       
    20     PROPERTY app_features myfeature
       
    21 )
       
    22 set_property(
       
    23     TARGET features-cpp-exe
       
    24     APPEND
       
    25     PROPERTY app_features secondfeature
       
    26 )
       
    27