commandline

This commit is contained in:
Nishi 2025-11-16 03:01:29 +09:00
commit bb582596b1
Signed by: nishi
GPG key ID: 27EF69B208EB9343
5 changed files with 58 additions and 0 deletions

View file

@ -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"
)

12
include/MDE/CommandLine.h Normal file
View file

@ -0,0 +1,12 @@
#ifndef __MDE_COMMANDLINE_H__
#define __MDE_COMMANDLINE_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif

6
include/MDE/Foundation.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef __MDE_FOUNDATION_H__
#define __MDE_FOUNDATION_H__
#include <MDE/CommandLine.h>
#endif

9
include/MDE/MachDep.h Normal file
View file

@ -0,0 +1,9 @@
#ifndef __MDE_MACHDEP_H__
#define __MDE_MACHDEP_H__
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#endif

1
src/commandline.c Normal file
View file

@ -0,0 +1 @@
#include <MDE/CommandLine.h>