khanat-opennel-code/code/snowballs2/server/collision/src/CMakeLists.txt
2010-05-06 02:08:41 +02:00

14 lines
727 B
CMake

FILE(GLOB SRC *.cpp *.h)
ADD_EXECUTABLE(sno_collision ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS} ${PNG_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS} ${JPEG_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)
SET_TARGET_PROPERTIES(sno_collision PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcmt /SUBSYSTEM:WINDOWS"
PROJECT_LABEL "Services: Snowballs Collision")
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS sno_collision RUNTIME DESTINATION sbin COMPONENT services)