To compile for linux

This commit is contained in:
lsv 2025-11-11 10:29:27 +05:00
parent ffeda8c9b6
commit 87cd59693e
3 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,11 @@
{
"files.associations": {
"regex": "cpp",
"*.pngc": "cpp"
"*.pngc": "cpp",
"*.inc": "c",
"vector": "cpp",
"string.h": "c",
"libpq-fe.h": "c"
},
"cmake.configureArgs": [

View file

@ -79,6 +79,7 @@ file(GLOB_RECURSE SOURCES
##########################################################
add_executable(${PROJECT_NAME} )
target_compile_definitions(${PROJECT_NAME} PRIVATE $<$<CONFIG:Debug>:_DEBUG>)
target_sources(${PROJECT_NAME} PUBLIC pgAdmin3.cpp ${SOURCES})
if(CROSS_COMPILE STREQUAL "Windows")
ENABLE_LANGUAGE(RC)

View file

@ -43,7 +43,7 @@
// Memory leak debugging
#ifdef _DEBUG
#define new DEBUG_NEW
//#define new DEBUG_NEW
#endif
// Legend margins