CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

IF(K3D_GTKSOURCEVIEW_FOUND)
	INCLUDE_DIRECTORIES(${K3D_GTKSOURCEVIEW_INCLUDE_DIRS})
	LINK_DIRECTORIES(${K3D_GTKSOURCEVIEW_LIBRARY_DIRS})
ENDIF(K3D_GTKSOURCEVIEW_FOUND)

K3D_BUILD_NGUI_MODULE(k3d-ngui-text-editor)
K3D_CREATE_MODULE_PROXY(k3d-ngui-text-editor)

IF(K3D_GTKSOURCEVIEW_FOUND)
	TARGET_LINK_LIBRARIES(k3d-ngui-text-editor ${K3D_GTKSOURCEVIEW_LIBRARIES})
ENDIF(K3D_GTKSOURCEVIEW_FOUND)

