x-tools/xapps/xapps.cmake
2025-05-28 14:02:58 +08:00

36 lines
1.0 KiB
CMake

option(X_ENABLE_X_APPS "Enable apps" OFF)
if(NOT X_ENABLE_X_APPS)
return()
endif()
if(ANDROID OR IOS)
return()
endif()
# Remove all main.cpp xTools.rc files from X_SOURCES
set(X_APPS_SOURCES ${X_SOURCES})
foreach(source ${X_APPS_SOURCES})
if(${source} MATCHES "main.cpp")
list(REMOVE_ITEM X_APPS_SOURCES ${source})
endif()
if(${source} MATCHES "xTools.rc")
list(REMOVE_ITEM X_APPS_SOURCES ${source})
endif()
endforeach()
# --------------------------------------------------------------------------------------------------
# xAssistant
include(${CMAKE_CURRENT_LIST_DIR}/xassistant/xAssistant.cmake)
# --------------------------------------------------------------------------------------------------
# xDebug
if(NOT QT_VERSION VERSION_LESS "6.8.0")
# include(${CMAKE_CURRENT_LIST_DIR}/xdebug/xDebug.cmake)
endif()
# --------------------------------------------------------------------------------------------------
# xPing
if(NOT QT_VERSION VERSION_LESS "6.8.0")
# include(${CMAKE_CURRENT_LIST_DIR}/xping/xPing.cmake)
endif()