2010-06-21 07:17:26 +02:00
|
|
|
# Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2010-09-12 18:32:49 +02:00
|
|
|
if( CMAKE_COMPILER_IS_GNUCXX )
|
|
|
|
|
add_definitions(--no-warnings)
|
|
|
|
|
elseif( MSVC )
|
2010-09-15 13:44:40 +02:00
|
|
|
add_definitions(/W0)
|
2010-09-12 18:32:49 +02:00
|
|
|
endif()
|
|
|
|
|
|
2010-06-21 12:43:39 +02:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
2010-09-18 22:16:35 +02:00
|
|
|
if(SERVERS)
|
2010-09-18 18:47:49 +02:00
|
|
|
add_subdirectory(jemalloc)
|
|
|
|
|
endif()
|
2010-06-21 07:17:26 +02:00
|
|
|
endif()
|
|
|
|
|
|
2010-06-21 12:43:39 +02:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
2010-09-18 22:16:35 +02:00
|
|
|
if(SERVERS)
|
2010-09-18 18:47:49 +02:00
|
|
|
add_subdirectory(acelite)
|
|
|
|
|
if(USE_MYSQL_SOURCES)
|
|
|
|
|
add_subdirectory(mysqllite)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
2010-06-21 07:17:26 +02:00
|
|
|
add_subdirectory(bzip2)
|
2010-09-18 18:47:49 +02:00
|
|
|
add_subdirectory(zlib)
|
2010-06-21 07:17:26 +02:00
|
|
|
endif()
|
2010-06-11 05:01:30 +02:00
|
|
|
|
2010-06-08 08:04:26 +02:00
|
|
|
add_subdirectory(g3dlite)
|
2010-09-18 18:47:49 +02:00
|
|
|
|
2010-09-18 22:16:35 +02:00
|
|
|
if(SERVERS)
|
2010-09-18 18:47:49 +02:00
|
|
|
add_subdirectory(gsoap)
|
|
|
|
|
endif()
|
2010-08-12 13:35:00 +02:00
|
|
|
|
|
|
|
|
if(TOOLS)
|
|
|
|
|
add_subdirectory(libmpq)
|
|
|
|
|
endif()
|