Created a cryfs_lib directory for the main source code

This commit is contained in:
Sebastian Messmer 2014-11-04 02:54:23 +01:00
parent bfbf58544d
commit 08c3ab0b38
4 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1 @@
add_library(cryfs_lib CryDevice.cpp)

View File

@ -0,0 +1,14 @@
#include "../cryfs_lib/CryDevice.h"
#include <iostream>
using namespace cryfs;
CryDevice::CryDevice() {
std::cout << "Created CryDevice\n";
}
CryDevice::~CryDevice() {
}

14
src/cryfs_lib/CryDevice.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef CRYFS_LIB_CRYDEVICE_H_
#define CRYFS_LIB_CRYDEVICE_H_
namespace cryfs {
class CryDevice {
public:
CryDevice();
virtual ~CryDevice();
};
}
#endif /* CRYFS_LIB_CRYDEVICE_H_ */

View File

@ -4,9 +4,12 @@
#include <cstdlib>
#include "buildconfig/BuildConfig.h"
#include "cryfs_lib/CryDevice.h"
int main ()
{
printf("Version: %d", buildconfig::VERSION::MAJOR);
printf("Version: %d\n", buildconfig::VERSION::MAJOR);
cryfs::CryDevice device;
#ifdef NDEBUG
printf("Release build");
#else