
##### install files

file( GLOB _symbols RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
list( SORT _symbols )

foreach( _symbol IN LISTS _symbols )
  if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_symbol} )
    file( GLOB _files ${_symbol}/*.png )
    list( SORT _files )
    install(
      FILES ${_files}
      DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/mathsymbols/${_symbol}
    )
  endif()
endforeach()


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

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


tde_add_executable( gesymb AUTOMOC
  SOURCES
      gesymb.cpp
  LINK
    ${TQT_LIBRARIES}
)
