Show version information
This commit is contained in:
parent
fa72419e14
commit
6b50ccc14b
@ -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...
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user