From 571434683ab37594bdaff897866facf47acb7ec3 Mon Sep 17 00:00:00 2001 From: Daniel Zint Date: Sun, 10 Sep 2023 11:31:38 -0400 Subject: [PATCH] fix IDE groups --- CMakeLists.txt | 4 +++- components/CMakeLists.txt | 2 +- src/CMakeLists.txt | 4 ---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52eb8bc3c5..60ecbaf8cd 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,7 +87,9 @@ add_library(wildmeshing_toolkit) add_library(wmtk::toolkit ALIAS wildmeshing_toolkit) add_subdirectory(src) - +# Group source files for IDEs +file(GLOB_RECURSE WMTK_FILES_FOR_SOURCE_GROUP "src/wmtk/*.cpp" "src/wmtk/*.h" "src/wmtk/*.hpp") +source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/src/wmtk" PREFIX "wmtk" FILES ${WMTK_FILES_FOR_SOURCE_GROUP}) # Compile definitions diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index 4c6a614906..ff133bf698 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -11,5 +11,5 @@ target_include_directories(wildmeshing_components PUBLIC ${CMAKE_CURRENT_SOURCE_ add_subdirectory(wmtk_components) # Group source files for IDEs -file(GLOB_RECURSE COMPONENTS_FILES_FOR_SOURCE_GROUP "cpp" "*/h" "*/hpp") +file(GLOB_RECURSE COMPONENTS_FILES_FOR_SOURCE_GROUP "*.cpp" "*.h" "*.hpp") source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/wmtk_components" PREFIX "components" FILES ${COMPONENTS_FILES_FOR_SOURCE_GROUP}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 49a3451748..5e0efb9d3c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,3 @@ # Include headers target_include_directories(wildmeshing_toolkit PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) add_subdirectory(wmtk) - -# Group source files for IDEs -file(GLOB_RECURSE WMTK_FILES_FOR_SOURCE_GROUP "*.cpp" "*.h" "*.hpp") -source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/wmtk" PREFIX "wmtk" FILES ${WMTK_FILES_FOR_SOURCE_GROUP})