mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* [CPP] Enable and build compliance with cpp20 * Windows build fix * bump fmt version * Updated fmt to 9.1, updated cmake minimum and verified preprocessor stuff works. * Missing : * Fix warning: top-level comma expression in array subscript is deprecated * Fix warning: top-level comma expression in array subscript is deprecated Co-authored-by: KimLS <KimLS@peqtgc.com>
39 lines
743 B
CMake
39 lines
743 B
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
|
|
|
|
SET(lb_sources
|
|
src/class.cpp
|
|
src/class_info.cpp
|
|
src/class_registry.cpp
|
|
src/class_rep.cpp
|
|
src/create_class.cpp
|
|
src/error.cpp
|
|
src/exception_handler.cpp
|
|
src/function.cpp
|
|
src/inheritance.cpp
|
|
src/link_compatibility.cpp
|
|
src/object_rep.cpp
|
|
src/open.cpp
|
|
src/pcall.cpp
|
|
src/scope.cpp
|
|
src/stack_content_by_name.cpp
|
|
src/weak_ref.cpp
|
|
src/wrapper_base.cpp
|
|
)
|
|
|
|
SET(lb_headers
|
|
|
|
)
|
|
|
|
ADD_LIBRARY(luabind ${lb_sources} ${lb_headers})
|
|
|
|
|
|
IF(UNIX)
|
|
set_source_files_properties(${lb_sources} PROPERTY COMPILE_FLAGS -Wno-deprecated-declarations)
|
|
ENDIF(UNIX)
|
|
|
|
IF(MSVC)
|
|
set_source_files_properties(${lb_sources} PROPERTY COMPILE_FLAGS " /W0 " )
|
|
ENDIF(MSVC)
|
|
|
|
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|