diff options
| author | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
| commit | 9fc8b732737f139d3e466510d75668ab45578960 (patch) | |
| tree | 76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/modules/FindJsonSchemaBuilder.cmake | |
| parent | b75e2659df11c23aa921d2eed83c23adc282ed27 (diff) | |
| download | kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2 kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip | |
sync with upstream
Diffstat (limited to 'project/cmake/modules/FindJsonSchemaBuilder.cmake')
| -rw-r--r-- | project/cmake/modules/FindJsonSchemaBuilder.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/project/cmake/modules/FindJsonSchemaBuilder.cmake b/project/cmake/modules/FindJsonSchemaBuilder.cmake new file mode 100644 index 0000000..78e8d0a --- /dev/null +++ b/project/cmake/modules/FindJsonSchemaBuilder.cmake | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #.rst: | ||
| 2 | # FindJsonSchemaBuilder | ||
| 3 | # --------------------- | ||
| 4 | # Finds the JsonSchemaBuilder | ||
| 5 | # | ||
| 6 | # This will define the following (imported) targets:: | ||
| 7 | # | ||
| 8 | # JsonSchemaBuilder::JsonSchemaBuilder - The JsonSchemaBuilder executable | ||
| 9 | |||
| 10 | if(NOT TARGET JsonSchemaBuilder::JsonSchemaBuilder) | ||
| 11 | if(CMAKE_CROSSCOMPILING) | ||
| 12 | add_executable(JsonSchemaBuilder::JsonSchemaBuilder IMPORTED GLOBAL) | ||
| 13 | set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES | ||
| 14 | IMPORTED_LOCATION "${NATIVEPREFIX}/bin/JsonSchemaBuilder") | ||
| 15 | else() | ||
| 16 | add_subdirectory(${CORE_SOURCE_DIR}/tools/depends/native/JsonSchemaBuilder build/jsonschemabuilder) | ||
| 17 | add_executable(JsonSchemaBuilder::JsonSchemaBuilder ALIAS JsonSchemaBuilder) | ||
| 18 | endif() | ||
| 19 | endif() | ||
