diff options
author | bartus | 2024-03-06 17:28:38 +0100 |
---|---|---|
committer | bartus | 2024-03-06 17:28:38 +0100 |
commit | ecc440d7002c2d126e13781b13c0bc1da4c62ffd (patch) | |
tree | 8d4989c76095f3d1f6c17d845a97c9b7a084dc5b /vtk_jsoncpp.patch | |
parent | c4c61ec54d56cbbbdd6a14cd168b35189c42e908 (diff) | |
download | aur-cloudcompare-git.tar.gz |
Fix missing JsonCpp::JsonCpp target in vtk
Diffstat (limited to 'vtk_jsoncpp.patch')
-rw-r--r-- | vtk_jsoncpp.patch | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/vtk_jsoncpp.patch b/vtk_jsoncpp.patch new file mode 100644 index 000000000000..39e01ea020c1 --- /dev/null +++ b/vtk_jsoncpp.patch @@ -0,0 +1,98 @@ +Submodule plugins/core/Standard/qMasonry contains modified content +diff --git a/plugins/core/Standard/qMasonry/qAutoSeg/CMakeLists.txt b/plugins/core/Standard/qMasonry/qAutoSeg/CMakeLists.txt +index 9865f33..b6b0d42 100644 +--- a/plugins/core/Standard/qMasonry/qAutoSeg/CMakeLists.txt ++++ b/plugins/core/Standard/qMasonry/qAutoSeg/CMakeLists.txt +@@ -6,7 +6,7 @@ option( PLUGIN_STANDARD_MASONRY_QAUTO_SEG "Check to install QAutoSeg plugin" OFF + if ( PLUGIN_STANDARD_MASONRY_QAUTO_SEG ) + + project( QAUTO_SEG_PLUGIN ) +- ++ + AddPlugin( NAME ${PROJECT_NAME} ) + + target_sources( ${PROJECT_NAME} +@@ -26,12 +26,14 @@ if ( PLUGIN_STANDARD_MASONRY_QAUTO_SEG ) + # Find Packages + # Find PCL + #set( PCL_DIR "C:/Program Files/PCL 1.9.1") #DGM: can't do that as it will obviously conflict with most of the users settings ;) ++ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/lib/cmake/vtk ) ++ find_package( JsonCpp REQUIRED ) + find_package( PCL 1.9.1 REQUIRED ) + + # Find OpenCV + #set( OpenCV_DIR "C:/opencv/build" ) #DGM: can't do that as it will obviously conflict with most of the users settings ;) + find_package( OpenCV REQUIRED ) +- ++ + if (WIN32) + # We need to copy the OpenCV "World" DLL file next to CloudCompare.exe + set( OpenCV_WORLD_DLL "" CACHE FILEPATH "Opencv 'World' DLL file path" ) +@@ -48,7 +50,7 @@ if ( PLUGIN_STANDARD_MASONRY_QAUTO_SEG ) + # [C/C++]>[Preprocessor]>[Preprocessor Definitions] + add_definitions( ${PCL_DEFINITIONS} ) + +- # For Use Not PreCompiled Features ++ # For Use Not PreCompiled Features + #add_definitions( -DPCL_NO_PRECOMPILE ) + + # [Linker]>[General]>[Additional Library Directories] +@@ -67,7 +69,7 @@ if ( PLUGIN_STANDARD_MASONRY_QAUTO_SEG ) + copy_files("${OpenCV_WORLD_DEBUG_DLL}" ${CLOUDCOMPARE_DEST_FOLDER} 2) + endif() + endif() +- ++ + endif() +- ++ + endif() +diff --git a/plugins/core/Standard/qMasonry/qManualSeg/CMakeLists.txt b/plugins/core/Standard/qMasonry/qManualSeg/CMakeLists.txt +index 1c13d67..79ff351 100644 +--- a/plugins/core/Standard/qMasonry/qManualSeg/CMakeLists.txt ++++ b/plugins/core/Standard/qMasonry/qManualSeg/CMakeLists.txt +@@ -6,7 +6,7 @@ option( PLUGIN_STANDARD_MASONRY_QMANUAL_SEG "Check to install qManualSeg plugin" + if ( PLUGIN_STANDARD_MASONRY_QMANUAL_SEG ) + + project( QMANUAL_SEG_PLUGIN ) +- ++ + AddPlugin( NAME ${PROJECT_NAME} ) + + +@@ -20,10 +20,12 @@ if ( PLUGIN_STANDARD_MASONRY_QMANUAL_SEG ) + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ) +- ++ + # Find Packages + # Find PCL + #set( PCL_DIR "C:/Program Files/PCL 1.9.1") #DGM: can't do that as it will obviously conflict with most of the users settings ;) ++ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/lib/cmake/vtk ) ++ find_package( JsonCpp REQUIRED ) + find_package( PCL 1.9.1 REQUIRED ) + + # Find OpenCV +@@ -46,7 +48,7 @@ if ( PLUGIN_STANDARD_MASONRY_QMANUAL_SEG ) + # [C/C++]>[Preprocessor]>[Preprocessor Definitions] + add_definitions( ${PCL_DEFINITIONS} ) + +- # For Use Not PreCompiled Features ++ # For Use Not PreCompiled Features + #add_definitions( -DPCL_NO_PRECOMPILE ) + + # [Linker]>[General]>[Additional Library Directories] +diff --git a/plugins/core/Standard/qPCL/PclUtils/CMakeLists.txt b/plugins/core/Standard/qPCL/PclUtils/CMakeLists.txt +index a78dd7129..5b5c1e2af 100644 +--- a/plugins/core/Standard/qPCL/PclUtils/CMakeLists.txt ++++ b/plugins/core/Standard/qPCL/PclUtils/CMakeLists.txt +@@ -2,6 +2,8 @@ project( QPCL_PLUGIN_UTILS_LIB ) + + find_package( Qt5 COMPONENTS Widgets REQUIRED ) + ++set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/lib/cmake/vtk ) ++find_package( JsonCpp REQUIRED ) + find_package( PCL 1.9 REQUIRED ) + + add_library( ${PROJECT_NAME} STATIC ) |