khanat-opennel-code/code/nel/src/cegui/CMakeLists.txt

21 lines
792 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}
PROJECT_LABEL "Library: NeL CEGUI Renderer")
IF(WIN32)
SET_TARGET_PROPERTIES(nelceguirenderer PROPERTIES
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
LINK_FLAGS "/NODEFAULTLIB:libcmt")
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)