Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You might want to take a look at this documentation links:</p> <p><a href="http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:find_library" rel="nofollow noreferrer">http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:find_library</a></p> <p><a href="http://www.cmake.org/cmake/help/v2.8.10/cmake.html#variable:CMAKE_FIND_LIBRARY_PREFIXES" rel="nofollow noreferrer">http://www.cmake.org/cmake/help/v2.8.10/cmake.html#variable:CMAKE_FIND_LIBRARY_PREFIXES</a></p> <p><a href="http://www.cmake.org/cmake/help/v2.8.10/cmake.html#variable:CMAKE_FIND_LIBRARY_SUFFIXES" rel="nofollow noreferrer">http://www.cmake.org/cmake/help/v2.8.10/cmake.html#variable:CMAKE_FIND_LIBRARY_SUFFIXES</a></p> <p>find_library may accept one or more library names. Those names get the value of CMAKE_FIND_LIBRARY_PREFIXES prepended and CMAKE_FIND_LIBRARY_SUFFIXES appended. This two variables should be set for each OS depending on how the librares are prefixed or suffixed there.</p> <p>In your case I'd write for Windows</p> <pre><code>SET(CMAKE_FIND_LIBRARY_PREFIXES "") SET(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".dll") </code></pre> <p>and for Linux</p> <pre><code>SET(CMAKE_FIND_LIBRARY_PREFIXES "lib") SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a") </code></pre> <p>and then write</p> <pre><code>find_library( magick CORE_RL_magick_ (or NAMES if there are multiple names for the same library on different systems) PATHS path1 path2 ... (other options that are specified in documentation and would be usefull to you) ) </code></pre> <p><strong>EDIT:</strong></p> <p><code>CMAKE_FIND_LIBRARY_PREFIXES</code> and <code>CMAKE_FIND_LIBRARY_SUFIXES</code> are set automatically by <a href="https://cmake.org/cmake/help/v3.8/command/project.html" rel="nofollow noreferrer"><code>project()</code> command</a> so calling it first and <code>find_library()</code> after that point is a better solution than setting the variables manually.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload