gambas-source-code/gui/CMakeLists.txt

28 lines
1.1 KiB
CMake

macro(gb_add_gui_component _NAME)
gb_add_component(${_NAME} ${ARGN})
get_property(DISABLED GLOBAL PROPERTY "GB_COMPONENT_DISABLED_${_NAME}")
if("${DISABLED}" STREQUAL "")
target_include_directories(${_NAME} PUBLIC ${GAMBAS_SOURCE_ROOT}/gui/share)
endif()
endmacro()
macro(gb_add_gui_impl _NAME)
gb_add_component_target(${_NAME} ${ARGN})
get_property(DISABLED GLOBAL PROPERTY "GB_COMPONENT_DISABLED_${_NAME}")
if("${DISABLED}" STREQUAL "")
target_include_directories(${_NAME} PUBLIC ${GAMBAS_SOURCE_ROOT}/gui/share)
endif()
gb_generate_info_files(${_NAME} ${_NAME})
gb_generate_info_files(${_NAME} "gb.gui")
gb_integrate_gambas_component(${_NAME} gb.gui.base "${CMAKE_CURRENT_LIST_DIR}/../gb.gui.base")
gb_generate_info_files(${_NAME} ${_NAME})
gb_generate_info_files(${_NAME} "gb.gui")
endmacro()
# add_subdirectory(form)
# add_subdirectory(switch)
add_subdirectory(qt4)
# add_subdirectory(qt5)
# add_subdirectory(gtk)
# add_subdirectory(gtk3)
# gb_add_gambas_component(gb.gui.base) #Is integrated directly into GUI implementations