
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 ${kxml_compiler_SRCS})

target_link_libraries(kxml_compiler  ${KDE4_KDECORE_LIBS} kode kschema )

install(TARGETS kxml_compiler  DESTINATION ${BIN_INSTALL_DIR} )



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} )


Fix kxml_compiler: symbol lookup error: kxml_compiler: undefined symbol: _ZN3RNG13ParserRelaxng10setVerboseEb which was due to the RPATH pointing to the kde inst dir, so even LD_LIBRARY_PATH in the .shell was ineffective.
Fix
kxml_compiler: symbol lookup error: kxml_compiler: undefined symbol: _ZN3RNG13ParserRelaxng10setVerboseEb
which was due to the RPATH pointing to the kde inst dir, so even LD_LIBRARY_PATH in the .shell was ineffective.

svn path=/trunk/KDE/kdepim/; revision=594843
