if(NOT GTK3_FOUND)
  return()
endif()

add_library("LoadingWindowGtk"
            OBJECT
            "arch/LoadingWindow/LoadingWindow_Gtk.cpp"
            "arch/LoadingWindow/LoadingWindow_Gtk.h")

set_property(TARGET "LoadingWindowGtk" PROPERTY FOLDER "Internal Libraries")
set_property(TARGET "LoadingWindowGtk" PROPERTY CXX_STANDARD 11)
set_property(TARGET "LoadingWindowGtk" PROPERTY CXX_STANDARD_REQUIRED ON)
set_property(TARGET "LoadingWindowGtk" PROPERTY CXX_EXTENSIONS ON)

target_include_directories("LoadingWindowGtk" PRIVATE "${SM_SRC_DIR}"
                                                      "${SM_SRC_DIR}/generated"
                                                      "${SM_SRC_DIR}/arch/LoadingWindow"
                                                      "${GTK3_INCLUDE_DIRS}")

target_link_libraries("LoadingWindowGtk" ${GTK3_LIBRARIES})

list(APPEND SMDATA_LINK_LIB "LoadingWindowGtk")
list(APPEND SMDATA_ARCH_LOADING_HPP
            "arch/LoadingWindow/LoadingWindow_Gtk.h")
