mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Tested with: - Windows 8 x64 - MySQL 5.5.30 win32 - OpenSSL 1.0.1c (32 bits) - No PCH - MinGW with GCC 4.7.0 TODO: - Fix compile/link with PCH enabled - Fix compile with WheatyExceptonionReport enabled (ignored for now) - Fix compile of .rc files (ignored for now) - Test with more platforms
33 lines
916 B
CMake
33 lines
916 B
CMake
# Platform-specfic options
|
|
option(USE_MYSQL_SOURCES "Use included MySQL-sources to build libraries" 1)
|
|
|
|
# Package overloads
|
|
set(ACE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/dep/acelite)
|
|
set(ACE_LIBRARY "ace")
|
|
set(BZIP2_LIBRARIES "bzip2")
|
|
set(ZLIB_LIBRARIES "zlib")
|
|
|
|
if( USE_MYSQL_SOURCES )
|
|
set(MYSQL_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/dep/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}/cmake/compiler/msvc/settings.cmake)
|
|
elseif ( MINGW )
|
|
include(${CMAKE_SOURCE_DIR}/cmake/compiler/mingw/settings.cmake)
|
|
endif()
|