pabloariasal / modern-cmake-sample

Example library that shows best practices and proper usage of CMake by using targets
MIT License
668 stars 70 forks source link

Include setup and commands in the readme file #4

Closed teeks99 closed 3 years ago

teeks99 commented 6 years ago

It would be nice if the readme included the necessary commands for beginners to execute the sample.

i.e. - how to get boost, how to build boost (./bootstrap.sh ; ./b2 --with-regex stage), how to let cmake find them (export BOOST_ROOT=/path/to/boost_1_55_0, export CMAKE_PREFIX_PATH=/path/to/rapidjson_repo), where to run cmake from (cd libjsonutils ; mkdir build; cd build; cmake ..), etc

pabloariasal commented 6 years ago

Yes, will add setup instructions for Linux at least, as I don't have access to a windows or mac. Normally you wouldn't want to build boost, but just install it using your package manager and let cmake find it for you. Same goes for rapidjson.

pabloariasal commented 3 years ago

Build/installation instructions have been added to the README