Add CMake build file
Allowing a developer to build with CMake without creating a build file and directory in each sample directory.
Needs an ability to build both as static and shared (based on BUILD_SHARED_LIBS variable) https://cmake.org/cmake/help/v3.22/guide/tutorial/Selecting%20Static%20or%20Shared%20Libraries.html for details
@hexedit I'm currently implementing CMake build files in another branch. It will at a minimum work with both static and shared versions of the wxWidgets library. Regarding building wxCharts itself as a shared library, help me understand the use case. The library is tiny so shipping it with the application shouldn't be a big problem. Also the API is not stable so a shared library may be problematic.
In short term it's not necessary, right. But looking future it may be a good idea. Anyway it's only a suggestion :) For now I use it as submodule with glob-based source inclusion to main project, so static too :) PS. Another reason to have full CMake support is that one can include as subdirectory and just linking using core CMake features. PPS. CMake can be an only build system nowadays cuz it supports most generators like MSVC project, Eclipse project, Unix/MinGW makefiles, etc. with flexibility of Autotools for dynamic platform and environment configurations.