stdutil: CMake-ify
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
project(stdutil)
|
||||
|
||||
SET(PUBLIC
|
||||
"stdutil.hpp"
|
||||
)
|
||||
SET(PRIVATE
|
||||
"stdutil.cpp"
|
||||
)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC
|
||||
${PUBLIC}
|
||||
${PRIVATE}
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
config
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC ${PROJECT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
target_compile_definitions(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
_CRT_SECURE_NO_WARNINGS
|
||||
# windows.h
|
||||
WIN32_LEAN_AND_MEAN
|
||||
NOGPICAPMASKS
|
||||
NOVIRTUALKEYCODES
|
||||
NOWINMESSAGES
|
||||
NOWINSTYLES
|
||||
NOSYSMETRICS
|
||||
NOMENUS
|
||||
NOICONS
|
||||
NOKEYSTATES
|
||||
NOSYSCOMMANDS
|
||||
NORASTEROPS
|
||||
NOSHOWWINDOW
|
||||
NOATOM
|
||||
NOCLIPBOARD
|
||||
NOCOLOR
|
||||
NOCTLMGR
|
||||
NODRAWTEXT
|
||||
NOGDI
|
||||
NOKERNEL
|
||||
NOUSER
|
||||
NONLS
|
||||
NOMB
|
||||
NOMEMMGR
|
||||
NOMETAFILE
|
||||
NOMINMAX
|
||||
NOMSG
|
||||
NOOPENFILE
|
||||
NOSCROLL
|
||||
NOSERVICE
|
||||
NOSOUND
|
||||
NOTEXTMETRIC
|
||||
NOWH
|
||||
NOWINOFFSETS
|
||||
NOCOMM
|
||||
NOKANJI
|
||||
NOHELP
|
||||
NOPROFILER
|
||||
NODEFERWINDOWPOS
|
||||
NOMCX
|
||||
NOIME
|
||||
NOMDI
|
||||
NOINOUT
|
||||
)
|
||||
endif()
|
||||
+3
-6
@@ -1,5 +1,5 @@
|
||||
|
||||
#include "stdutil.h"
|
||||
#include "stdutil.hpp"
|
||||
|
||||
#include <set>
|
||||
#include <math.h>
|
||||
@@ -127,11 +127,8 @@ void _cdecl operator delete[](void *q, const char *file, int line) { op_delete(q
|
||||
|
||||
#else
|
||||
|
||||
void trackmem(bool enable) {
|
||||
}
|
||||
|
||||
void checkmem(ostream &out) {
|
||||
}
|
||||
#define trackmem
|
||||
#define checkmem
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma warning(disable:4786)
|
||||
|
||||
#include "../config/config.h"
|
||||
#include "config.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
Reference in New Issue
Block a user