My library for basic c++ web functionality
- CMake > v3.11 - The project is set up using CMake, so that is required to used the build structure provided.
- Make
- Suitable C++ compiler - gcc, clang or MSVC depending on your system.
- libssl-dev
- libcurl4-gnutls-dev
There is a build script provided that should work on any linux machine with the prerequisites in place: build.sh
. It will remove the build folder, build the project binary, and then run it.
If that does not work for you, do the following (command line):
- Create a build folder in the root project directory (if one exists, delete it).
- Run the command
cmake -S . -B build/
. Watch the build output (if it fails, please contact me). - cd into the build folder
- Run the command
make
. Watch the build output (if it fails, please contact me). - You should now have a binary of the appropriate os type named bailando-basic-web.
If that does not work for you and you do not have a command line (troubleshooting).
- You can use the CMake GUI if you feel more comfortable there. In it you could make it create an IDE project for you to open (for example Visual Studio or XCode). Then you can use that to build. I have not created the project structure to do this so it might require some additional steps to work.
- You can use your own favorite build tool. Nothing magic is done in cmake or the build script. Simply build with main as the executable target and make sure to include all the other cpp files in the src folder together with all the .h files in the inc folder for compilation and linking.
- Contact me
Erik Bylund
[email protected]
+46703891989
By default, this is built as a library and as such has no executable. There is a couple of lines in the top CMakeLists.txt to build the main.cpp test executable. If you uncomment those and comment out the relevant library lines, then:
Simply run the executable build/bailando-basic-web(.exe)
using a command line. The output will be written to std::out.
- CMakeLists.txt - Instructions to CMake on how to build the project.
- build.sh - A build script to make building into a one line command, mainly for me during development.
- src - source file for project
- lib - folder for any included libraries.
- dependencies - dependencies pulled in from other projects
The code is structured into an include folder (inc) containing all the header files and a source folder (src) containing all the source files.