summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindJsonSchemaBuilder.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/modules/FindJsonSchemaBuilder.cmake')
-rw-r--r--project/cmake/modules/FindJsonSchemaBuilder.cmake19
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
10if(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()
19endif()