From: Laurent B. <lau...@un...> - 2017-09-26 07:01:43
|
Hi Alan, I tried this if (PLplot_FOUND) message( " PATH0 ${PLplotwx_LIBS}" ) message( " PATH1 ${PLplot_INCLUDE_DIR}" ) message( " PATH3 ${PLplot_DIR}" ) message( " PATH4 ${PLplotcxx_LIBS}" ) get_target_property(PLplotwx_LIBS plplotwxwidgets INTERFACE_LINK_LIBRARIES) get_target_property(PLplot_LIBS plplot INTERFACE_LINK_LIBRARIES) get_target_property(PLplotcxx_LIBS plplotcxx INTERFACE_LINK_LIBRARIES) message( " PATH0 ${PLplotwx_LIBS}" ) message( " PATH1 ${PLplot_INCLUDE_DIR}" ) message( " PATH3 ${PLplot_LIBS}" ) message( " PATH4 ${PLplotcxx_LIBS}" ) include_directories(${INCLUDE_DIR}) include_directories(${PLplot_DIR}/../../../include/plplot) target_link_libraries( wxOpenCVMain ${PLplotwx_LIBS}) else (PLplot_FOUND) message( " PROBLEME" ) endif(PLplot_FOUND) and and cmake output is : PATH0 PATH1 PATH3 C:/Program Files/plplot/lib/cmake/plplot PATH4 PATH0 plplot;plplotcxx;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31ud.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31u.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31ud_core.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31u_core.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpngd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpng.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiffd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiff.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpegd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpeg.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlibd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlib.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexud.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexu.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpatd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpat.lib>;winmm;comctl32;oleacc;rpcrt4;shlwapi;version;wsock32 PATH1 PATH3 $<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31ud.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxbase31u.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31ud_core.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxmsw31u_core.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpngd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxpng.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiffd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxtiff.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpegd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxjpeg.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlibd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxzlib.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexud.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxregexu.lib>;$<$<CONFIG:DEBUG>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpatd.lib>;$<$<NOT:$<CONFIG:DEBUG>>:G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib/wxexpat.lib>;winmm;comctl32;oleacc;rpcrt4;shlwapi;version;wsock32;csirocsa;qsastime PATH4 plplot -- WINDOWS -- G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib -- Configuring done -- Generating done -- Build files have been written to: G:/Lib/build/wxOpenCV In my project I got only this libs C:\Program Files\plplot\lib\plplot.lib C:\Program Files\plplot\lib\plplotcxx.lib C:\Program Files\plplot\lib\csirocsa.lib C:\Program Files\plplot\lib\qsastime.lib plplotwxwidgets is missing I think I miss something because my cmakelist is too complicated Le 20/09/2017 à 08:03, Alan W. Irwin a écrit : > On 2017-09-19 19:36+0200 Laurent Berger wrote: > >> Hi Alan, >> >> >> About lplot-devel posting issues : new subscribe solved problem >> >> >> To install plplot I use install project (with admin right) to install >> plplot in C:\Program Files\plplot. A copy of my plplot folder is >> perso.univ-lemans.fr/~berger/Afsd56/plplot >> >> > [...] >>> But you need to give more details (i.e., the CMake logic you used to >>> determine the values of ${PLplot_INCLUDE_DIR} and ${PLplot_LIBS}, and >>> the actual locations on your disk for the PLplot headers and >>> libraries) before we can help you determine _why_ those variables are >>> empty. > >> I don't understand. > > Hi Laurant, > > From what you have said, my understanding is you have already built > and installed PLplot, and now you want to use the PLplot installed > headers and libraries in your own software project that you are > configuring with CMake. > > PLplot solves a similar problem when it creates a CMake-based build > system for our installed examples that uses the PLplot headers > and libraries to build those examples. > > So you should be adapting our logic (see > examples/CMakeLists.txt starting at > > else(CORE_BUILD) > > ) for your own needs. For example, following our logic, your project > should set CMAKE_MODULE_PATH to get access > to the installed PLplot locations .../cmake/modules and > .../cmake/modules/language_support/cmake so that the commands > > include(plplot_configure) > find_package(plplot) > > work correctly to import everything you need to know about the > PLplot installation into your own project. > > Of course, in the future it would be helpful to users with your needs > if one of the PLplot developers developed a simple tutorial example of > a project that builds software that uses the PLplot headers and > libraries. But nobody has created such a tutorial example yet so all > we have for you at the present time is to suggest you adapt our own > logic as above to satisfy your own needs. > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and > Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state > implementation for stellar interiors (freeeos.sf.net); the Time > Ephemerides project (timeephem.sf.net); PLplot scientific plotting > software package (plplot.sf.net); the libLASi project > (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); > and the Linux Brochure Project (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ |