remove finders

This commit is contained in:
marauder2k7 2026-03-12 21:26:22 +00:00
parent 378fb30642
commit 581fe50756
3 changed files with 0 additions and 40 deletions

View file

@ -1,13 +0,0 @@
if(TARGET pcre)
set(PCRE_FOUND TRUE)
set(PCRE_INCLUDE_DIRS $<TARGET_PROPERTY:pcre,INTERFACE_INCLUDE_DIRECTORIES>)
set(PCRE_LIBRARIES pcre)
# Provide an alias for consistency with modern CMake
if(NOT TARGET PCRE::PCRE)
add_library(PCRE::PCRE ALIAS pcre)
endif()
else()
set(PCRE_FOUND FALSE)
message(FATAL_ERROR "PCRE was not added with add_subdirectory before calling find_package(PCRE).")
endif()

View file

@ -1,13 +0,0 @@
if(TARGET SDL2)
set(SDL2_FOUND TRUE)
set(SDL2_INCLUDE_DIRS $<TARGET_PROPERTY:SDL2,INTERFACE_INCLUDE_DIRECTORIES>)
set(SDL2_LIBRARIES SDL2)
# Provide a modern CMake alias
if(NOT TARGET SDL2::SDL2)
add_library(SDL2::SDL2 ALIAS SDL2)
endif()
else()
set(SDL2_FOUND FALSE)
message(FATAL_ERROR "SDL2 was not added with add_subdirectory before calling find_package(SDL2).")
endif()

View file

@ -1,14 +0,0 @@
# Ensure zlib has been added before using this module
if(TARGET zlib)
set(ZLIB_FOUND TRUE)
set(ZLIB_INCLUDE_DIRS $<TARGET_PROPERTY:zlib,INTERFACE_INCLUDE_DIRECTORIES>)
set(ZLIB_LIBRARIES zlib)
message(STATUS "Using Torques build of zlib.")
# Provide an alias for consistency with modern CMake
if(NOT TARGET ZLIB::ZLIB)
add_library(ZLIB::ZLIB ALIAS zlib)
endif()
else()
set(ZLIB_FOUND FALSE)
message(FATAL_ERROR "Zlib was not added with add_subdirectory before calling find_package(ZLIB).")
endif()