mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
46 lines
919 B
CMake
46 lines
919 B
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
|
|
|
SET(ucs_sources
|
|
chatchannel.cpp
|
|
clientlist.cpp
|
|
database.cpp
|
|
ucs.cpp
|
|
ucsconfig.cpp
|
|
worldserver.cpp
|
|
)
|
|
|
|
SET(ucs_headers
|
|
chatchannel.h
|
|
clientlist.h
|
|
database.h
|
|
ucsconfig.h
|
|
worldserver.h
|
|
)
|
|
|
|
ADD_EXECUTABLE(ucs ${ucs_sources} ${ucs_headers})
|
|
|
|
ADD_DEFINITIONS(-DUCS)
|
|
|
|
TARGET_LINK_LIBRARIES(ucs Common debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE})
|
|
|
|
IF(MSVC)
|
|
|
|
SET_TARGET_PROPERTIES(ucs PROPERTIES LINK_FLAGS_RELEASE "/OPT:REF /OPT:ICF")
|
|
TARGET_LINK_LIBRARIES(ucs "Ws2_32.lib")
|
|
ENDIF(MSVC)
|
|
|
|
IF(MINGW)
|
|
TARGET_LINK_LIBRARIES(ucs "WS2_32")
|
|
ENDIF(MINGW)
|
|
|
|
IF(UNIX)
|
|
TARGET_LINK_LIBRARIES(ucs "dl")
|
|
TARGET_LINK_LIBRARIES(ucs "z")
|
|
TARGET_LINK_LIBRARIES(ucs "m")
|
|
TARGET_LINK_LIBRARIES(ucs "rt")
|
|
TARGET_LINK_LIBRARIES(ucs "pthread")
|
|
ADD_DEFINITIONS(-fPIC)
|
|
ENDIF(UNIX)
|
|
|
|
SET(EXECUTABLE_OUTPUT_PATH ../Bin)
|