grim/guifications3

removed some ENABLE_NLS wrappers

2011-05-17, Gary Kramlich
f31281edef1c
removed some ENABLE_NLS wrappers
###############################################################################
# gflib-ui source
###############################################################################
set(GFLIB_UI_HEADERS
gf_color.h
gf_drawable.h
gf_font.h
gf_gc.h
gf_item.h
gf_item_image.h
gf_item_shape.h
gf_notification.h
gf_primitives.h
gf_theme.h
gf_theme_info.h
gf_theme_options.h
)
set(GFLIB_UI_BUILT_HEADERS
)
set(GFLIB_UI_SOURCES
gf_color.c
gf_drawable.c
gf_font.c
gf_gc.c
gf_item.c
gf_item_image.c
gf_item_shape.c
gf_notification.c
gf_primitives.c
gf_theme.c
gf_theme_info.c
gf_theme_options.c
)
###############################################################################
# gf_lib_ui.h generation
###############################################################################
add_custom_command(
OUTPUT gf_lib_ui.h
DEPENDS ${GFLIB_GENHEADER} ${GFLIB_UI_HEADERS} ${GFLIB_UI_BUILT_HEADERS}
COMMAND ${GFLIB_GENHEADER} -s GF_LIB_UI_H -d gflib-ui
${GFLIB_UI_HEADERS} ${GFLIB_UI_BUILT_HEADERS} >
${CMAKE_CURRENT_BINARY_DIR}/gf_lib_ui.h
)
###############################################################################
# gflib-ui target
###############################################################################
add_library(gflib-ui SHARED
${GFLIB_UI_HEADERS}
${GFLIB_UI_BUILT_HEADERS}
${GFLIB_UI_SOURCES}
# this is a hack to make this get built since nothing depends on it
gf_lib_ui.h
)
target_link_libraries(gflib-ui
${GLIB_LIBRARIES}
${GFLIB_LIBRARIES}
m
)
###############################################################################
# Install Stuff
###############################################################################
# install the library
install(TARGETS gflib-ui LIBRARY DESTINATION lib)
# install the single include into the main directory
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/gf_lib_ui.h
DESTINATION include/gflib-1.0
)
# install the normal headers into the gflib-ui directory
foreach(HEADER ${GFLIB_UI_HEADERS})
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/${HEADER}
DESTINATION include/gflib-1.0/gflib-ui
)
endforeach(HEADER)
# install the built headers into the gflib-ui directory
foreach(HEADER ${GFLIB_UI_BUILT_HEADERS})
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/${HEADER}
DESTINATION include/gflib-1.0/gflib-ui
)
endforeach(HEADER)