summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/benchmark.cmake2
-rw-r--r--cmake/core.cmake2
-rw-r--r--cmake/filesource.cmake2
-rw-r--r--cmake/glfw.cmake2
-rw-r--r--cmake/loop-darwin.cmake2
-rw-r--r--cmake/mbgl.cmake2
-rw-r--r--cmake/node.cmake3
-rw-r--r--cmake/offline.cmake2
-rw-r--r--cmake/render.cmake2
-rw-r--r--cmake/test.cmake2
10 files changed, 21 insertions, 0 deletions
diff --git a/cmake/benchmark.cmake b/cmake/benchmark.cmake
index ea5b3dfa7a..98fa4dac63 100644
--- a/cmake/benchmark.cmake
+++ b/cmake/benchmark.cmake
@@ -24,6 +24,8 @@ mbgl_platform_benchmark()
create_source_groups(mbgl-benchmark)
+set_target_properties(mbgl-benchmark PROPERTIES FOLDER "Executables")
+
initialize_xcode_cxx_build_settings(mbgl-benchmark)
xcode_create_scheme(
diff --git a/cmake/core.cmake b/cmake/core.cmake
index 43ec141b78..436c767182 100644
--- a/cmake/core.cmake
+++ b/cmake/core.cmake
@@ -27,6 +27,8 @@ mbgl_platform_core()
create_source_groups(mbgl-core)
+set_target_properties(mbgl-core PROPERTIES FOLDER "Core")
+
xcode_create_scheme(TARGET mbgl-core)
initialize_xcode_cxx_build_settings(mbgl-core)
diff --git a/cmake/filesource.cmake b/cmake/filesource.cmake
index 5dc706340f..ccd2192f39 100644
--- a/cmake/filesource.cmake
+++ b/cmake/filesource.cmake
@@ -45,6 +45,8 @@ mbgl_filesource()
create_source_groups(mbgl-filesource)
+set_target_properties(mbgl-filesource PROPERTIES FOLDER "Core")
+
xcode_create_scheme(TARGET mbgl-filesource)
initialize_xcode_cxx_build_settings(mbgl-filesource)
diff --git a/cmake/glfw.cmake b/cmake/glfw.cmake
index 2b2cb47ecb..c59ca013d0 100644
--- a/cmake/glfw.cmake
+++ b/cmake/glfw.cmake
@@ -31,6 +31,8 @@ mbgl_platform_glfw()
create_source_groups(mbgl-glfw)
+set_target_properties(mbgl-glfw PROPERTIES FOLDER "Executables")
+
initialize_xcode_cxx_build_settings(mbgl-glfw)
xcode_create_scheme(
diff --git a/cmake/loop-darwin.cmake b/cmake/loop-darwin.cmake
index 692aecb8a2..3109911e66 100644
--- a/cmake/loop-darwin.cmake
+++ b/cmake/loop-darwin.cmake
@@ -11,4 +11,6 @@ target_include_directories(mbgl-loop-darwin
create_source_groups(mbgl-loop-darwin)
+set_target_properties(mbgl-loop-darwin PROPERTIES FOLDER "Core")
+
xcode_create_scheme(TARGET mbgl-loop-darwin) \ No newline at end of file
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index f67fbd3b4f..0809d911a9 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -80,6 +80,7 @@ if(WITH_NODEJS)
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
COMMENT "Updating submodules..."
)
+ set_target_properties(update-submodules PROPERTIES FOLDER "Misc")
# Run npm install for both directories, and add custom commands, and a target that depends on them.
_npm_install("${CMAKE_SOURCE_DIR}" mapbox-gl-native update-submodules)
@@ -88,6 +89,7 @@ if(WITH_NODEJS)
npm-install ALL
DEPENDS "${CMAKE_SOURCE_DIR}/node_modules/.mapbox-gl-js.stamp"
)
+ set_target_properties(npm-install PROPERTIES FOLDER "Misc")
endif()
# Generate source groups so the files are properly sorted in IDEs like Xcode.
diff --git a/cmake/node.cmake b/cmake/node.cmake
index 218b7548f6..103d99b6a5 100644
--- a/cmake/node.cmake
+++ b/cmake/node.cmake
@@ -58,8 +58,10 @@ target_link_libraries(mbgl-node INTERFACE
)
target_add_mason_package(mbgl-node INTERFACE geojson)
+set_target_properties(mbgl-node.all PROPERTIES FOLDER "Node.js")
add_custom_target(mbgl-node.active DEPENDS mbgl-node.abi-${NodeJS_ABI})
+set_target_properties(mbgl-node.active PROPERTIES FOLDER "Node.js")
mbgl_platform_node()
@@ -67,6 +69,7 @@ create_source_groups(mbgl-node)
foreach(ABI IN LISTS mbgl-node::abis)
initialize_xcode_cxx_build_settings(mbgl-node.abi-${ABI})
+ set_target_properties(mbgl-node.abi-${ABI} PROPERTIES FOLDER "Node.js")
xcode_create_scheme(
TARGET mbgl-node.abi-${ABI}
NAME "mbgl-node (ABI ${ABI})"
diff --git a/cmake/offline.cmake b/cmake/offline.cmake
index 13b6c3fe70..d9dfb6c6e8 100644
--- a/cmake/offline.cmake
+++ b/cmake/offline.cmake
@@ -21,6 +21,8 @@ mbgl_platform_offline()
create_source_groups(mbgl-offline)
+set_target_properties(mbgl-offline PROPERTIES FOLDER "Executables")
+
xcode_create_scheme(
TARGET mbgl-offline
OPTIONAL_ARGS
diff --git a/cmake/render.cmake b/cmake/render.cmake
index c6e7d9dd59..781b7ff2aa 100644
--- a/cmake/render.cmake
+++ b/cmake/render.cmake
@@ -20,6 +20,8 @@ create_source_groups(mbgl-render)
initialize_xcode_cxx_build_settings(mbgl-render)
+set_target_properties(mbgl-render PROPERTIES FOLDER "Executables")
+
xcode_create_scheme(
TARGET mbgl-render
OPTIONAL_ARGS
diff --git a/cmake/test.cmake b/cmake/test.cmake
index d6a2565979..c13ad866c9 100644
--- a/cmake/test.cmake
+++ b/cmake/test.cmake
@@ -43,6 +43,8 @@ create_source_groups(mbgl-test)
initialize_xcode_cxx_build_settings(mbgl-test)
+set_target_properties(mbgl-test PROPERTIES FOLDER "Executables")
+
xcode_create_scheme(
TARGET mbgl-test
OPTIONAL_ARGS