############################################################################
# CMakeLists.txt file for building ROOT graf2d/x11 package
# @author Pere Mato, CERN
############################################################################

include_directories(${X11_INCLUDE_DIR})

ROOT_STANDARD_LIBRARY_PACKAGE(GX11
                              HEADERS T*.h
                              SOURCES *.cxx  *.c
                              DICTIONARY_OPTIONS "-writeEmptyRootPCM"
                              DEPENDENCIES Core
                              LIBRARIES Core ${X11_LIBRARIES} ${X11_Xpm_LIB} ${CMAKE_THREAD_LIBS_INIT}
                              INSTALL_OPTIONS FILTER "X11/" FILTER "X11$")

if(AIX)
  include_directories(AFTER ${CMAKE_CURRENT_SOURCE_DIR}/inc)
endif()

############################################################################
# CMakeLists.txt file for building ROOT graf2d/x11 package
# @author Pere Mato, CERN
############################################################################

include_directories(${X11_INCLUDE_DIR})

ROOT_STANDARD_LIBRARY_PACKAGE(GX11
                              HEADERS T*.h
                              SOURCES *.cxx  *.c
                              DICTIONARY_OPTIONS "-writeEmptyRootPCM"
                              DEPENDENCIES Core
                              LIBRARIES Core ${X11_LIBRARIES} ${X11_Xpm_LIB} ${CMAKE_THREAD_LIBS_INIT}
                              INSTALL_OPTIONS FILTER "inc/X11/" FILTER "X11$")

if(AIX)
  include_directories(AFTER ${CMAKE_CURRENT_SOURCE_DIR}/inc)
endif()

Fix fo ROOT-8941 - TGX11.h copied to include/ but not installed with CMake build for 6.10/04
Fix fo ROOT-8941 - TGX11.h copied to include/ but not installed with CMake build for 6.10/04
