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

24 lines
889 B
Text
Raw Normal View History

2010-05-06 00:08:41 +00:00
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 "NeL, Library: CEGUI Renderer")
2010-05-06 00:08:41 +00:00
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}")
2010-05-06 00:08:41 +00:00
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)