Cmake build system for trinity

--HG--
branch : trunk
This commit is contained in:
raczman
2009-01-17 09:23:33 -05:00
parent 87d9f3261e
commit 09ddc711f4
29 changed files with 1684 additions and 1 deletions
+53
View File
@@ -0,0 +1,53 @@
########### next target ###############
SET(trinity-core_SRCS
CliRunnable.cpp
CliRunnable.h
Main.cpp
Master.cpp
Master.h
RASocket.cpp
RASocket.h
WorldRunnable.cpp
WorldRunnable.h
)
add_executable(trinity-core ${trinity-core_SRCS})
add_definitions(
-D_TRINITY_CORE_CONFIG='"${CONF_DIR}/trinitycore.conf"'
)
IF (DO_MYSQL)
SET_TARGET_PROPERTIES(trinity-core PROPERTIES LINK_FLAGS "-pthread")
ENDIF(DO_MYSQL)
target_link_libraries(
trinity-core
game
shared
zlib
trinityframework
trinitysockets
trinitydatabase
trinityauth
trinityconfig
vmaps
ZThread
g3dlite
${SCRIPT_LIB}
${MYSQL_LIBRARIES}
${POSTGRE_LIBS}
${SSLLIB}
${ACE_LIBRARY}
${ZLIB}
)
install(TARGETS trinity-core DESTINATION bin)
########### install files ###############
install(FILES trinitycore.conf.dist DESTINATION etc)