Skip to content

Commit

Permalink
Add fools Cmake configuration (for linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadDeCoDeR committed Mar 30, 2024
1 parent 4a1a978 commit 32dd1d1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions neo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ option (ALL_STATIC
option (USE_DXGI
"Use Direct3D to render OpenGL on Windows" OFF)

option (USE_FOOLS
"Enable Fools Edition" OFF)
if (CMAKE_CL_64)
set(CPU_ARCH x64)
else()
Expand Down Expand Up @@ -330,6 +332,12 @@ elseif(MSVC)

endif()

if (USE_FOOLS)
add_definitions(-DFOOLS)
if (MSVC)
add_definitions(-D_CRT_RAND_S)
endif()
endif()
#if(STANDALONE)
# add_definitions(-DSTANDALONE)
#endif()
Expand Down
14 changes: 14 additions & 0 deletions neo/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,20 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Retail"
}
},
{
"name": "linux-retail-fools",
"displayName": "Linux Retail (Fools Edition)",
"binaryDir": "${sourceParentDir}/buildRetailFools",
"generator": "Unix Makefiles",
"inherits": "linux-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Retail",
"USE_FOOLS": {
"type": "BOOL",
"value": "ON"
}
}
}
]
}

0 comments on commit 32dd1d1

Please sign in to comment.