# How to get the list of needed Catalyst libraries using CMake?

**URL:** https://discourse.paraview.org/t/how-to-get-the-list-of-needed-catalyst-libraries-using-cmake/358
**Category:** In Situ Support
**Created:** [July 25, 2018, 3:45pm UTC](https://discourse.paraview.org/t/how-to-get-the-list-of-needed-catalyst-libraries-using-cmake/358 "2018-07-25T15:45:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jchou](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@jchou](https://discourse.paraview.org/u/jchou)
#### Post date: [July 25, 2018, 3:45pm UTC](https://discourse.paraview.org/t/how-to-get-the-list-of-needed-catalyst-libraries-using-cmake/358/1 "2018-07-25T15:45:55Z")

</div>

Hi everyone,

I am trying to link one of my simulations to ParaView Catalyst. What I do in my CMake file is something like this:

```
find_package(ParaView 4.3 COMPONENTS vtkPVPythonCatalyst)
if(ParaView_FOUND)
    message(STATUS "ParaView found")
    include("${PARAVIEW_USE_FILE}")
    list(APPEND NEEDED_LIBRARIES ${PARAVIEW_LIBRARIES})
    include_directories(${ParaView_INCLUDE_DIRS})
    add_definitions("-DUSE_CATALYST")

    message(STATUS "ParaView linclude directories: ${PARAVIEW_INCLUDE_DIRS}")
    message(STATUS "ParaView libraries: ${ParaView_LIBRARIES}")
    message(STATUS "ParaView library dires: ${ParaView_LIBRARY_DIRS}")

else(ParaView_FOUND)
    message(STATUS "ParaView not found")
endif(ParaView_FOUND)

```

I am using the `NEEDED_LIBRARIES` variable to collect all of my dependent libraries and link them to my simulation. After running the cmake file, I see that the value of `ParaView_LIBRARIES` and `ParaView_LIBRARY_DIRS` are empty. I checked these two variable: `PARAVIEW_LIBRARIES` and `PARAVIEW_LIBRARY_DIRS`. But they are empty too.

Now, the question is that how I can have the list of libraries needed for linking to a simulation. I checked some ParaView samples, but in all of them the libraries are mentioned explicitly in the code like this:

`target_link_libraries(<target> vtkPVPythonCatalyst vtkParallelMPI)`

Thanks,  
Chou
