
add_subdirectory( tests ) 

include_directories( ${CMAKE_SOURCE_DIR}/kode/libkode ${CMAKE_SOURCE_DIR}/kode  )


########### next target ###############

set(kschema_LIB_SRCS
	parserrelaxng.cpp
	parserxsd.cpp
	schema.cpp
	)

kde4_automoc(${kschema_LIB_SRCS})

kde4_add_library(kschema SHARED ${kschema_LIB_SRCS})

target_link_libraries(kschema ${KDE4_KDECORE_LIBS} schema )

set_target_properties(kschema PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kschema  DESTINATION ${LIB_INSTALL_DIR})

########### next target ###############

set(kxml_compiler_SRCS 
	creator.cpp 
	kxml_compiler.cpp 
	parsercreatordom.cpp 
	parsercreatorcustom.cpp)

kde4_automoc(${kxml_compiler_SRCS})

kde4_add_executable(kxml_compiler NOGUI RUN_UNINSTALLED ${kxml_compiler_SRCS})

target_link_libraries(kxml_compiler  ${KDE4_KDECORE_LIBS} kode kschema )

install(TARGETS kxml_compiler  DESTINATION ${BIN_INSTALL_DIR} )

