diff options
Diffstat (limited to 'cmake/modules/FindJsonSchemaBuilder.cmake')
| -rw-r--r-- | cmake/modules/FindJsonSchemaBuilder.cmake | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cmake/modules/FindJsonSchemaBuilder.cmake b/cmake/modules/FindJsonSchemaBuilder.cmake new file mode 100644 index 0000000..9a31dd5 --- /dev/null +++ b/cmake/modules/FindJsonSchemaBuilder.cmake | |||
| @@ -0,0 +1,26 @@ | |||
| 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(KODI_DEPENDSBUILD OR CMAKE_CROSSCOMPILING) | ||
| 12 | add_executable(JsonSchemaBuilder::JsonSchemaBuilder IMPORTED GLOBAL) | ||
| 13 | if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore) | ||
| 14 | set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES | ||
| 15 | IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/project/BuildDependencies/bin/json-rpc/JsonSchemaBuilder") | ||
| 16 | else() | ||
| 17 | set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES | ||
| 18 | IMPORTED_LOCATION "${NATIVEPREFIX}/bin/JsonSchemaBuilder") | ||
| 19 | endif() | ||
| 20 | set_target_properties(JsonSchemaBuilder::JsonSchemaBuilder PROPERTIES FOLDER Tools) | ||
| 21 | else() | ||
| 22 | add_subdirectory(${CMAKE_SOURCE_DIR}/tools/depends/native/JsonSchemaBuilder build/jsonschemabuilder) | ||
| 23 | add_executable(JsonSchemaBuilder::JsonSchemaBuilder ALIAS JsonSchemaBuilder) | ||
| 24 | set_target_properties(JsonSchemaBuilder PROPERTIES FOLDER Tools) | ||
| 25 | endif() | ||
| 26 | endif() | ||
