Created a cryfs_lib directory for the main source code
This commit is contained in:
parent
bfbf58544d
commit
08c3ab0b38
1
src/cryfs_lib/CMakeLists.txt
Normal file
1
src/cryfs_lib/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
add_library(cryfs_lib CryDevice.cpp)
|
14
src/cryfs_lib/CryDevice.cpp
Normal file
14
src/cryfs_lib/CryDevice.cpp
Normal 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
14
src/cryfs_lib/CryDevice.h
Normal 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_ */
|
@ -4,9 +4,12 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include "buildconfig/BuildConfig.h"
|
#include "buildconfig/BuildConfig.h"
|
||||||
|
|
||||||
|
#include "cryfs_lib/CryDevice.h"
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
printf("Version: %d", buildconfig::VERSION::MAJOR);
|
printf("Version: %d\n", buildconfig::VERSION::MAJOR);
|
||||||
|
cryfs::CryDevice device;
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
printf("Release build");
|
printf("Release build");
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user