mirror of
https://github.com/araxiaonline/AzerothCore-wotlk-with-NPCBots.git
synced 2026-06-13 03:22:24 -04:00
39 lines
1.3 KiB
CMake
39 lines
1.3 KiB
CMake
#
|
|
# This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
|
|
#
|
|
# This file is free software; as a special exception the author gives
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
# modifications, as long as this notice is preserved.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
#
|
|
|
|
# Platform-specfic options
|
|
option(USE_MYSQL_SOURCES "Use included MySQL-sources to build libraries" 0)
|
|
|
|
if( USE_MYSQL_SOURCES )
|
|
set(MYSQL_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/deps/mysqllite/include)
|
|
set(MYSQL_LIBRARY "libmysql")
|
|
set( MYSQL_FOUND 1 )
|
|
message(STATUS "Using supplied MySQL sources")
|
|
endif()
|
|
|
|
# check the CMake preload parameters (commented out by default)
|
|
|
|
# overload CMAKE_INSTALL_PREFIX if not being set properly
|
|
#if( WIN32 )
|
|
# if( NOT CYGWIN )
|
|
# if( NOT CMAKE_INSTALL_PREFIX )
|
|
# set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/bin")
|
|
# endif()
|
|
# endif()
|
|
#endif()
|
|
|
|
if ( MSVC )
|
|
include(${CMAKE_SOURCE_DIR}/src/cmake/compiler/msvc/settings.cmake)
|
|
elseif ( MINGW )
|
|
include(${CMAKE_SOURCE_DIR}/src/cmake/compiler/mingw/settings.cmake)
|
|
endif()
|