mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
add chat panel, send text messages, guard forbidden functions with an ifdef
This commit is contained in:
@@ -7,6 +7,7 @@ SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")
|
||||
OPTION(USE_PCH "Use precompiled header" ON)
|
||||
OPTION(NO_CONSOLE "Disable console window on Windows" OFF)
|
||||
OPTION(HANDLE_EXCEPTIONS "Generate crash reports" OFF)
|
||||
OPTION(FORBIDDEN_FUNCTIONS "Enable forbidden lua functions" ON)
|
||||
|
||||
# find needed packages
|
||||
SET(Boost_USE_STATIC_LIBS ON)
|
||||
@@ -141,6 +142,10 @@ IF(HANDLE_EXCEPTIONS)
|
||||
ADD_DEFINITIONS(-DHANDLE_EXCEPTIONS)
|
||||
ENDIF(HANDLE_EXCEPTIONS)
|
||||
|
||||
IF(FORBIDDEN_FUNCTIONS)
|
||||
ADD_DEFINITIONS(-DFORBIDDEN_FUNCTIONS)
|
||||
ENDIF(FORBIDDEN_FUNCTIONS)
|
||||
|
||||
IF(WIN32)
|
||||
SET(SOURCES ${SOURCES} src/framework/platform/win32platform.cpp)
|
||||
SET(ADDITIONAL_LIBRARIES ws2_32)
|
||||
|
Reference in New Issue
Block a user