Files
AscEmu/cmake/Systems/Linux.cmake
schnek 32b9748984 Resolved errors in cmake / added comments
Removed active triggers they are not used (invisibility type -15)
Increased maximum build id 48107, 12555
Removed std::string LogFileName, bool bLogChat - not used
Renamed men -> man
2023-03-04 23:02:06 +03:00

29 lines
812 B
CMake

# Copyright (c) 2014-2023 AscEmu Team <http://www.ascemu.org>
message(STATUS "Applying settings for Linux system")
set(EXTRA_LIBS ${EXTRA_LIBS} dl)
set(LIBS_DIR ${CMAKE_INSTALL_PREFIX}/lib)
add_definitions(-DUSE_EPOLL)
# find required libraries
find_package(ZLIB REQUIRED)
find_package(PCRE REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Threads REQUIRED)
find_package(MySQL REQUIRED)
find_package(BZip2 REQUIRED)
if (CMAKE_COMPILER_IS_GNUCXX)
include(${CMAKE_SOURCE_DIR}/cmake/Compilers/gcc.cmake)
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
include(${CMAKE_SOURCE_DIR}/cmake/Compilers/clang.cmake)
else ()
message(FATAL_ERROR "Compiler is not supported")
endif ()
# check for database update files
set(PATH_DB_FILES ${CMAKE_SOURCE_DIR}/sql/)
set(INSTALL_DB_FILES ${PATH_DB_FILES})