<div dir="ltr">Hi Kenichiro,<div><br></div><div>Thanks for the CMakeList you provided. It works fine now.</div><div><br></div><div>Kind Regards</div><div><br></div><div>Famous</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 10 Jan 2019 at 08:52, kenichiro yoshimi <<a href="mailto:rccm.kyoshimi@gmail.com">rccm.kyoshimi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
The following CMakeLists.txt eliminates the errors if all required<br>
modules are installed.<br>
<br>
----<br>
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)<br>
project(ParallelProcessingGeneric)<br>
<br>
find_package(VTK<br>
COMPONENTS<br>
vtkImagingCore<br>
vtkImagingGeneral<br>
vtkFiltersCore<br>
vtkFiltersSources<br>
vtkParallelMPI<br>
vtkRenderingCore<br>
vtkRenderingParallel<br>
vtkTestingCore<br>
vtkTestingRendering<br>
)<br>
include(${VTK_USE_FILE})<br>
include(vtkMPI)<br>
<br>
add_executable(ParallelIso ParallelIso.cxx)<br>
target_link_libraries(ParallelIso<br>
PRIVATE<br>
${VTK_LIBRARIES})<br>
<br>
set(TaskPara_SRCS<br>
TaskParallelism.cxx<br>
task1.cxx<br>
task2.cxx)<br>
<br>
add_executable(TaskParallelism<br>
${TaskPara_SRCS})<br>
target_link_libraries(TaskParallelism<br>
PRIVATE<br>
${VTK_LIBRARIES})<br>
----<br>
<br>
Regards,<br>
<br>
2019年1月9日(水) 18:12 Osarobo Famous Okhuahesogie <<a href="mailto:famous.osarobo@gmail.com" target="_blank">famous.osarobo@gmail.com</a>>:<br>
><br>
> Hi All,<br>
><br>
> I have installed VTK on my computer. However, when I try to configure the example /ParallelProcessing/Generic/Cxx using CMake, I get the following error message.<br>
><br>
> CMake Error at CMakeLists.txt:3 (include):<br>
> include could not find load file:<br>
><br>
> vtkMPI<br>
><br>
> CMake Error at C:/VTK-8.1.1/src/CMake/vtkModuleAPI.cmake:143 (message):<br>
> Requested modules not available:<br>
><br>
> vtkRenderingParallel<br>
> Call Stack (most recent call first):<br>
> C:/VTK-8.1.1/build2/VTKConfig.cmake:127 (vtk_module_config)<br>
> CMakeLists.txt:5 (find_package)<br>
><br>
> CMake Warning (dev) in CMakeLists.txt:<br>
> No cmake_minimum_required command is present. A line of code such as<br>
><br>
> cmake_minimum_required(VERSION 3.13)<br>
><br>
> should be added at the top of the file. The version specified may be lower<br>
> if you wish to support older CMake versions for this project. For more<br>
> information run "cmake --help-policy CMP0000".<br>
> This warning is for project developers. Use -Wno-dev to suppress it.<br>
><br>
><br>
><br>
><br>
> Here is the content of CMakeLists.txt used for the configuration:<br>
><br>
><br>
> INCLUDE_REGULAR_EXPRESSION("^(lex|vtk|png|j|Task|Pipe).*$") include(vtkMPI) find_package(VTK COMPONENTS vtkImagingCore vtkImagingGeneral vtkFiltersCore vtkFiltersSources vtkParallelMPI vtkRenderingCore vtkRenderingParallel vtkTestingCore vtkTestingRendering ) include(${VTK_USE_FILE}) # Needed for mpich 2 ADD_DEFINITIONS("-DMPICH_IGNORE_CXX_SEEK") ADD_EXECUTABLE(ParallelIso ParallelIso.cxx) TARGET_LINK_LIBRARIES(ParallelIso LINK_PRIVATE ${VTK_LIBRARIES}) VTK_MPI_LINK(ParallelIso) SET(TaskPara_SRCS TaskParallelism.cxx task1.cxx task2.cxx) ADD_EXECUTABLE(TaskParallelism ${TaskPara_SRCS}) TARGET_LINK_LIBRARIES (TaskParallelism ${VTK_LIBRARIES}) # ADD_EXECUTABLE(SimpleBenchmark SimpleBenchmark.cxx) # TARGET_LINK_LIBRARIES(SimpleBenchmark vtkParallel ${MPI_LIBRARIES} )<br>
><br>
><br>
> I will appreciate if anyone is able to suggest ways to solve the problem<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Famous<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>