11Simple cross platform plug-in system
22====================================
33
4- The sharedlibpp is a tiny cross-platform library to create and load shared
5- libraries for different platform (Linux/Mac/Windows). The sharedlibpp provide
4+ ` shlibpp ` is a tiny cross-platform library to create and load shared
5+ libraries for different platform (Linux/Mac/Windows). ` shlibpp ` provides
66an easy and portable way to create plug-ins which encapsulate your c++ classes
77inside a shared library (so, dylib, dll).
88The original code is taken and from
@@ -13,33 +13,24 @@ added to report the native OS error messages on failures.
1313
1414Building on Linux/Mac
1515---------------------
16- $ cd sharedlibpp
17- $ mkdir build; cd build
18- $ cmake ../; make
16+ $ cd shlibpp
17+ $ cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
18+ $ cmake --build . --config Release
19+ $ cmake --install .
1920
2021
21- Building on Windows
22- -------------------
23- The easiest way is to use Cmake to create VStudio project. To do that:
24-
25- * download and install [ cmake] ( http://www.cmake.org/download/ ) for windows.
26- * open the cmake gui and set the source path to ` sharedlibpp ` and set the
27- build path (for example ` sharedlibpp/build ` ).
28- * configure and generate visual studio project.
29- * open the project and built it.
30-
3122Running example
3223---------------
33- The build system by defualt compiles and build the examples.
24+ The build system by default compiles and build the examples.
3425
3526* On Linux/Mac
3627```
37- $ cd sharedlibpp /build/examples
38- $ ./math_test mymath.so
39- $ ./math_test_custom mymathcustom.so
28+ $ cd shlibpp /build/examples
29+ $ ./math_test mymath
30+ $ ./math_test_custom mymathcustom
4031```
4132* On Windows first switch to directory where example is created and then
4233```
43- > math_test mymath.dll
44- > math_test_custom mymathcustom.dll
34+ > math_test mymath
35+ > math_test_custom mymathcustom
4536```
0 commit comments