MicBosi / VisualizationLibrary

Visualization Library is a C++ middleware for high-performance 2D and 3D graphics applications based on OpenGL 1.x-4.x supporting Windows, Linux and Mac OS X.
http://VisualizationLibrary.org
Other
342 stars 96 forks source link

Documentation - VLMain missing from "getting started" find_package(VL COMPONENTS ...) #205

Open benhanginaround opened 2 years ago

benhanginaround commented 2 years ago

I was having a ton of issues with CMake (Win32) - The example programs compiled fine during the library build, but I couldn't get my own program to link. (unable to find vl::VisualizationLibrary::init()/vl::VisualizationLibrary::shutdown()) I finally discovered that adding "VLMain" to the "find_package" command in my CMakeLists.txt fixed the issue.

I'm not sure if this is the right fix, but if so, I'd recommend updating the "compiling and installing document" (https://www.visualizationlibrary.org/docs/2.1/html/pag_install.html) to include 'VLMain' in the example CMake project.