mariusbancila / croncpp

A C++11/14/17 header-only cross-platform library for handling CRON expressions
MIT License
236 stars 68 forks source link

Added CMake install targets #2

Closed omaralvarez closed 4 years ago

omaralvarez commented 5 years ago

I added CMake install target so that a user can:

mkdir build
cd build
cmake ..
make install

Next, you can use:

find_package(croncpp REQUIRED)

And in the code:

#include <croncpp/croncpp.h>
mariusbancila commented 5 years ago

I can't merge this as it breaks the building for the test and benchmark projects.

omaralvarez commented 5 years ago

They compiled for me. What problem are you having?

mariusbancila commented 5 years ago

What I did was:

git checkout -b omaralvarez-master master
git pull https://github.com/omaralvarez/croncpp.git master
mkdir build
cd build
cmake ..\benchmark

Then loaded and build the project:

fatal error C1083: Cannot open include file: 'croncpp.h': No such file or directory

omaralvarez commented 5 years ago

Could you try:

cmake ..

The main cmake file will build everything for you.