diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-07-17 15:42:06 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-07-17 18:36:17 +0200 |
commit | 93d37282d9d7f4050a7fc682de8abea01996f113 (patch) | |
tree | 8b36c1344d0edfca7f569bb7510790b2cec84a96 /cmake | |
parent | 7d686dfcba448bb5dd54bf0dae25c5273ebe1362 (diff) | |
download | qtlocation-mapboxgl-93d37282d9d7f4050a7fc682de8abea01996f113.tar.gz |
[build] organize CMake targets in folders for IDEs
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/benchmark.cmake | 2 | ||||
-rw-r--r-- | cmake/core.cmake | 2 | ||||
-rw-r--r-- | cmake/filesource.cmake | 2 | ||||
-rw-r--r-- | cmake/glfw.cmake | 2 | ||||
-rw-r--r-- | cmake/loop-darwin.cmake | 2 | ||||
-rw-r--r-- | cmake/mbgl.cmake | 2 | ||||
-rw-r--r-- | cmake/node.cmake | 3 | ||||
-rw-r--r-- | cmake/offline.cmake | 2 | ||||
-rw-r--r-- | cmake/render.cmake | 2 | ||||
-rw-r--r-- | cmake/test.cmake | 2 |
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 |