diff --git a/CMakeLists.txt b/CMakeLists.txt index fa2e2a8..2867c3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,3 +5,33 @@ project( VERSION 0.0 DESCRIPTION "MDE Libraries" ) + +file( + GLOB + SOURCES + src/*.c +) + +add_library( + MDE + SHARED + ${SOURCES} +) + +target_include_directories( + MDE + PUBLIC + include +) + +include(GNUInstallDirs) +install( + TARGETS MDE + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} +) +install( + DIRECTORY ${CMAKE_SOURCE_DIR}/include/ + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILES_MATCHING PATTERN "*.h" +) diff --git a/include/MDE/CommandLine.h b/include/MDE/CommandLine.h new file mode 100644 index 0000000..1185d2a --- /dev/null +++ b/include/MDE/CommandLine.h @@ -0,0 +1,12 @@ +#ifndef __MDE_COMMANDLINE_H__ +#define __MDE_COMMANDLINE_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/include/MDE/Foundation.h b/include/MDE/Foundation.h new file mode 100644 index 0000000..0ebdf6f --- /dev/null +++ b/include/MDE/Foundation.h @@ -0,0 +1,6 @@ +#ifndef __MDE_FOUNDATION_H__ +#define __MDE_FOUNDATION_H__ + +#include + +#endif diff --git a/include/MDE/MachDep.h b/include/MDE/MachDep.h new file mode 100644 index 0000000..c6dad2e --- /dev/null +++ b/include/MDE/MachDep.h @@ -0,0 +1,9 @@ +#ifndef __MDE_MACHDEP_H__ +#define __MDE_MACHDEP_H__ + +#include +#include +#include +#include + +#endif diff --git a/src/commandline.c b/src/commandline.c new file mode 100644 index 0000000..3bb3305 --- /dev/null +++ b/src/commandline.c @@ -0,0 +1 @@ +#include