Changed: Snowballs projects updated

hg/feature/sound
kervala 14 years ago
parent 7e70573c6e
commit 2758e14672

@ -1,19 +1,21 @@
FILE(GLOB SRC *.cpp *.h) FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(snowballs ${SRC}) ADD_EXECUTABLE(snowballs_client WIN32 ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${PNG_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS} ${FREETYPE_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR}) TARGET_LINK_LIBRARIES(snowballs_client
TARGET_LINK_LIBRARIES(snowballs ${PLATFORM_LINKFLAGS} ${PNG_LIBRARIES} ${LIBXML2_LIBRARIES} ${FREETYPE_LIBRARY} ${JPEG_LIBRARY} ${NELMISC_LIBRARY} ${NELPACS_LIBRARY} ${NELNET_LIBRARY} ${NEL3D_LIBRARY}) ${PLATFORM_LINKFLAGS}
nelmisc
nelpacs
nelnet
nel3d)
NL_DEFAULT_PROPS(snowballs_client "Snowballs, Client: Snowballs Client")
NL_ADD_RUNTIME_FLAGS(snowballs_client)
# If sound is enabled then add the definitions and link the libraries. # If sound is enabled then add the definitions and link the libraries.
IF(ENABLE_SOUND) IF(ENABLE_SOUND)
ADD_DEFINITIONS(-DSBCLIENT_WITH_SOUND) ADD_DEFINITIONS(-DSBCLIENT_WITH_SOUND)
TARGET_LINK_LIBRARIES(snowballs ${NELSOUND_LIBRARY} ${NELSNDDRV_LIBRARY}) TARGET_LINK_LIBRARIES(snowballs_client ${NELSOUND_LIBRARY})
ENDIF(ENABLE_SOUND) ENDIF(ENABLE_SOUND)
IF(WIN32)
SET_TARGET_PROPERTIES(snowballs PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS"
PROJECT_LABEL "Snowballs Client")
ENDIF(WIN32)
INSTALL(TARGETS snowballs RUNTIME DESTINATION bin COMPONENT snowballsclient) INSTALL(TARGETS snowballs_client RUNTIME DESTINATION bin COMPONENT snowballsclient)

@ -1,14 +1,18 @@
FILE(GLOB SRC *.cpp *.h) FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(sno_chat ${SRC}) ADD_EXECUTABLE(snowballs_chat_service WIN32 ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(sno_chat ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY} ${NELNET_LIBRARY})
IF(WIN32) TARGET_LINK_LIBRARIES(snowballs_chat_service
SET_TARGET_PROPERTIES(sno_chat PROPERTIES ${PLATFORM_LINKFLAGS}
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS" ${LIBXML2_LIBRARIES}
PROJECT_LABEL "Services: Snowballs Chat") nelmisc
ENDIF(WIN32) nelnet)
NL_DEFAULT_PROPS(snowballs_chat_service "Snowballs, Services: Chat")
NL_ADD_RUNTIME_FLAGS(snowballs_chat_service)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS sno_chat RUNTIME DESTINATION sbin COMPONENT services) INSTALL(TARGETS snowballs_chat_service RUNTIME DESTINATION sbin COMPONENT services)

@ -1,14 +1,20 @@
FILE(GLOB SRC *.cpp *.h) FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(sno_collision ${SRC}) ADD_EXECUTABLE(snowballs_collision_service WIN32 ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS} ${PNG_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS} ${JPEG_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(sno_collision ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${PNG_LIBRARIES} ${FREETYPE_LIBRARY} ${JPEG_LIBRARY} ${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELPACS_LIBRARY} ${NEL3D_LIBRARY} ${FREETYPE_LIBRARY})
IF(WIN32) TARGET_LINK_LIBRARIES(snowballs_collision_service
SET_TARGET_PROPERTIES(sno_collision PROPERTIES ${PLATFORM_LINKFLAGS}
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS" ${LIBXML2_LIBRARIES}
PROJECT_LABEL "Services: Snowballs Collision") nelmisc
ENDIF(WIN32) nelnet
nelpacs
nel3d)
NL_DEFAULT_PROPS(snowballs_collision_service "Snowballs, Services: Collision")
NL_ADD_RUNTIME_FLAGS(snowballs_collision_service)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS sno_collision RUNTIME DESTINATION sbin COMPONENT services) INSTALL(TARGETS snowballs_collision_service RUNTIME DESTINATION sbin COMPONENT services)

@ -1,14 +1,18 @@
FILE(GLOB SRC *.cpp *.h) FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(sno_frontend ${SRC}) ADD_EXECUTABLE(snowballs_frontend_service ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(sno_frontend ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY} ${NELNET_LIBRARY})
IF(WIN32) TARGET_LINK_LIBRARIES(snowballs_frontend_service
SET_TARGET_PROPERTIES(sno_frontend PROPERTIES ${PLATFORM_LINKFLAGS}
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS" ${LIBXML2_LIBRARIES}
PROJECT_LABEL "Services: Snowballs Frontend") nelmisc
ENDIF(WIN32) nelnet)
NL_DEFAULT_PROPS(snowballs_frontend_service "Snowballs, Services: Frontend Service")
NL_ADD_RUNTIME_FLAGS(snowballs_frontend_service)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS sno_frontend RUNTIME DESTINATION sbin COMPONENT services) INSTALL(TARGETS snowballs_frontend_service RUNTIME DESTINATION sbin COMPONENT services)

@ -1,11 +1,13 @@
FILE(GLOB SRC *.cpp *.h) FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(sno_position WIN32 ${SRC}) ADD_EXECUTABLE(snowballs_position_service WIN32 ${SRC})
INCLUDE_DIRECTORIES(${NELMISC_INCLUDE_DIRS}) TARGET_LINK_LIBRARIES(snowballs_position_service
${PLATFORM_LINKFLAGS}
nelmisc
nelnet)
TARGET_LINK_LIBRARIES(sno_position ${PLATFORM_LINKFLAGS} ${NELMISC_LIBRARY} ${NELNET_LIBRARY}) NL_DEFAULT_PROPS(snowballs_position_service "Snowballs, Services: Position Service")
NL_DEFAULT_PROPS(sno_position "Services: Snowballs Position") NL_ADD_RUNTIME_FLAGS(snowballs_position_service)
NL_ADD_RUNTIME_FLAGS(sno_position)
INSTALL(TARGETS sno_position RUNTIME DESTINATION sbin COMPONENT services) INSTALL(TARGETS snowballs_position_service RUNTIME DESTINATION sbin COMPONENT services)

Loading…
Cancel
Save