khanat-code-old/code/nel/src/cegui/CMakeLists.txt
2010-08-20 13:27:17 +02:00

23 lines
888 B
CMake

FILE(GLOB SRC *.cpp ../../include/nel/cegui/*.h)
ADD_LIBRARY(nelceguirenderer SHARED ${SRC} nelceguirenderer.def)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${FREETYPE_INC} ${CEGUI_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(nelceguirenderer nelmisc nel3d ${CEGUI_LIBRARY})
SET_TARGET_PROPERTIES(nelceguirenderer PROPERTIES
VERSION ${NL_VERSION}
SOVERSION ${NL_VERSION_MAJOR}
PROJECT_LABEL "Library: NeL CEGUI Renderer")
IF(WIN32)
SET_TARGET_PROPERTIES(nelceguirenderer PROPERTIES
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}")
ADD_DEFINITIONS("/DNEL_CEGUIRENDERER_EXPORTS")
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS nelceguirenderer RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)