2010-06-21 07:17:26 +02:00
|
|
|
# Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
|
2010-06-09 15:39:34 +02:00
|
|
|
#
|
|
|
|
|
# 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-08-08 21:02:56 +02:00
|
|
|
# Enforce compileparameters for corebuilds under GCC
|
|
|
|
|
# This to stop a few silly crashes that could have been avoided IF people
|
|
|
|
|
# weren't doing some -O3 psychooptimizations etc.
|
|
|
|
|
|
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
|
add_definitions(-fno-delete-null-pointer-checks)
|
|
|
|
|
endif()
|
|
|
|
|
|
2010-07-29 21:08:16 +02:00
|
|
|
if( SERVERS )
|
2010-06-09 14:49:14 +02:00
|
|
|
add_subdirectory(shared)
|
2010-06-09 14:15:57 +02:00
|
|
|
add_subdirectory(game)
|
|
|
|
|
add_subdirectory(collision)
|
2010-07-29 21:08:16 +02:00
|
|
|
add_subdirectory(authserver)
|
|
|
|
|
if( SCRIPTS )
|
2010-06-09 14:15:57 +02:00
|
|
|
add_subdirectory(scripts)
|
2010-06-21 07:17:26 +02:00
|
|
|
endif()
|
2010-06-09 14:15:57 +02:00
|
|
|
add_subdirectory(worldserver)
|
2010-07-31 05:36:05 +02:00
|
|
|
else()
|
|
|
|
|
if( TOOLS )
|
|
|
|
|
add_subdirectory(collision)
|
|
|
|
|
endif()
|
2010-06-21 07:17:26 +02:00
|
|
|
endif()
|