Skip to content

Commit

Permalink
Refactored code to fit coding styles. Also renamed all references to …
Browse files Browse the repository at this point in the history
…Trinity to Morpheus.
  • Loading branch information
thumsoul committed Apr 3, 2012
1 parent 2b56abd commit 075647e
Show file tree
Hide file tree
Showing 94 changed files with 4,136 additions and 4,427 deletions.
50 changes: 25 additions & 25 deletions CMakeLists.txt
@@ -1,4 +1,4 @@
project(trinitycore3)
project(morpheus)

include(CPack)

Expand All @@ -17,67 +17,67 @@ FIND_LIBRARY(SSLLIB NAMES ssl DOC "SSL library")
#OPTION(_CLIENT_BUILD "Client to build for" tbc)

if(_CLIENT_BUILD)
message(STATUS "Will build for client version: ${_CLIENT_BUILD}")
message(STATUS "Will build for client version: ${_CLIENT_BUILD}")
else()
message(SEND_ERROR "Please specify client build to compile for! (-D_CLIENT_BUILD=\"build\")\n Available builds:\n prebc \n tbc\n wlk")
message(SEND_ERROR "Please specify client build to compile for! (-D_CLIENT_BUILD=\"build\")\n Available builds:\n prebc \n tbc\n wlk")
endif()

if(_DEBUG)
message(STATUS "Debug build")
add_definitions(-D_TRINITY_DEBUG -ggdb)
message(STATUS "Debug build")
add_definitions(-D_MORPHEUS_DEBUG -ggdb)
else()
message(STATUS "Normal build")
message(STATUS "Normal build")
endif()

set(TC3_INSTALL_DIR "/usr/local")
set(INSTALL_DIR "/usr/local")
if (_INSTALL_DIR)
set(TC3_INSTALL_DIR "${_INSTALL_DIR}")
set(INSTALL_DIR "${_INSTALL_DIR}")
endif(_INSTALL_DIR)
message(STATUS "Will be installed in: ${TC3_INSTALL_DIR}")
message(STATUS "Will be installed in: ${INSTALL_DIR}")

if(OPENSSL_FOUND)
message(STATUS "Found openssl")
message(STATUS "Found openssl")
else(OPENSSL_FOUND)
message(ERROR "Couldn't find OpenSSL library!")
message(ERROR "Couldn't find OpenSSL library!")
endif(OPENSSL_FOUND)

FIND_ACE(ACE)
if(ACE_FOUND)
message(STATUS "Found ACE library: ${ACE_LIBRARY}")
message(STATUS "Include dir is: ${ACE_INCLUDE_DIR}")
message(STATUS "Found ACE library: ${ACE_LIBRARY}")
message(STATUS "Include dir is: ${ACE_INCLUDE_DIR}")
else(ACE_FOUND)
message(SEND_ERROR "Couldn't find ACE library!")
message(SEND_ERROR "Couldn't find ACE library!")
endif(ACE_FOUND)

FIND_PACKAGE(MySQL)
IF(MYSQL_FOUND)
MESSAGE(STATUS "MySQL found at: ${MYSQL_INCLUDE_DIR}, ${MYSQL_LIBRARIES}")
ADD_DEFINITIONS(-DHAVE_MYSQL)
MESSAGE(STATUS "MySQL found at: ${MYSQL_INCLUDE_DIR}, ${MYSQL_LIBRARIES}")
ADD_DEFINITIONS(-DHAVE_MYSQL)
ELSE(MYSQL_FOUND)
MESSAGE(STATUS "Couldn't find MySQL include files and/or library")
MESSAGE(STATUS "Couldn't find MySQL include files and/or library")
ENDIF(MYSQL_FOUND)

FIND_PACKAGE(SQLite3)
IF(SQLITE3_FOUND)
MESSAGE(STATUS "SQLite3 found at: ${SQLITE3_INCLUDE_DIR}, ${SQLITE3_LIBRARIES}")
ADD_DEFINITIONS(-DHAVE_SQLITE)
MESSAGE(STATUS "SQLite3 found at: ${SQLITE3_INCLUDE_DIR}, ${SQLITE3_LIBRARIES}")
ADD_DEFINITIONS(-DHAVE_SQLITE)
ELSE(SQLITE3_FOUND)
MESSAGE(STATUS "Couldn't find SQLite3 include files and/or library")
MESSAGE(STATUS "Couldn't find SQLite3 include files and/or library")
ENDIF(SQLITE3_FOUND)

find_package(TAO)
if(TAO_FOUND)
message(STATUS "TAO found: ${TAO_INCLUDE_DIR}, ${TAO_LIBRARY}")
message(STATUS "TAO found: ${TAO_INCLUDE_DIR}, ${TAO_LIBRARY}")
else(TAO_FOUND)
message(SEND_ERROR "Couldn't find TAO!")
message(SEND_ERROR "Couldn't find TAO!")
endif(TAO_FOUND)

add_custom_target(doc cd ${trinitycore3_SOURCE_DIR} && doxygen ${trinitycore3_SOURCE_DIR}/Doxyfile)
add_custom_target(doc cd ${morpheus_SOURCE_DIR} && doxygen ${morpheus_SOURCE_DIR}/Doxyfile)

if(WIN32)
include_directories(
${ACE_INCLUDE_DIR}
${OPENSSL_INCLUDE_DIR}
${ACE_INCLUDE_DIR}
${OPENSSL_INCLUDE_DIR}
)
endif(WIN32)

Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Expand Up @@ -25,7 +25,7 @@ DOXYFILE_ENCODING = UTF-8
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.

PROJECT_NAME = Trinity Core 3
PROJECT_NAME = Morpheus

# The PROJECT_NUMBER tag can be used to enter a project or revision number.
# This could be handy for archiving the generated documentation or
Expand Down

0 comments on commit 075647e

Please sign in to comment.