Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest/CMakeLists.txt
raw| 1 | |
| 2 | cmake_minimum_required(VERSION 3.10) |
| 3 | |
| 4 | project(ExportLanguagesTest) |
| 5 | |
| 6 | include(${CMAKE_CURRENT_BINARY_DIR}/../BExport.cmake) |
| 7 | get_property(configs TARGET ExpExportLanguagesB PROPERTY IMPORTED_CONFIGURATIONS) |
| 8 | foreach(c ${configs}) |
| 9 | get_property(langs TARGET ExpExportLanguagesB PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES_${c}) |
| 10 | list(FIND langs CXX pos) |
| 11 | if(${pos} LESS 0) |
| 12 | message(FATAL_ERROR "Target export does not list object library languages.") |
| 13 | endif() |
| 14 | endforeach() |