Show version information

This commit is contained in:
Sebastian Messmer 2015-09-16 22:54:07 +02:00
parent fa72419e14
commit 6b50ccc14b
2 changed files with 7 additions and 0 deletions

View File

@ -9,6 +9,8 @@ ACTIVATE_CPP14()
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
ADD_GIT_VERSION(Version.h)
ENABLE_STYLE_WARNINGS()
# You can safely delete lines from here...

View File

@ -10,15 +10,20 @@
#include "filesystem/CryDevice.h"
#include "config/CryConfigLoader.h"
#include "Version.h"
namespace bf = boost::filesystem;
using blockstore::ondisk::OnDiskBlockStore;
using blockstore::inmemory::InMemoryBlockStore;
using cpputils::make_unique_ref;
using std::cout;
using std::endl;
int main (int argc, char *argv[])
{
cout << "CryFS Version "<<version::VERSION_STRING << endl;
auto blockStore = make_unique_ref<OnDiskBlockStore>(bf::path("/home/heinzi/cryfstest/root"));
auto config = cryfs::CryConfigLoader().loadOrCreate(bf::path("/home/heinzi/cryfstest/config.json"));
cryfs::CryDevice device(std::move(config), std::move(blockStore));