codebase refactor

This commit is contained in:
cdemeyer-teachx
2025-08-15 12:38:44 +09:00
parent bbfe64b604
commit ee337f001a
27 changed files with 396 additions and 591 deletions

View File

@@ -0,0 +1,14 @@
@PACKAGE_INIT@
# Pokemon Battle Simulator CMake Configuration
set(PokEng_VERSION "@PROJECT_VERSION@")
# Set up import targets
include("${CMAKE_CURRENT_LIST_DIR}/PokEngTargets.cmake")
# Set up variables for consumers
set(PokEng_LIBRARIES PokEng::pokemon_battle_sim)
set(PokEng_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
# Check required components
check_required_components(PokEng)

View File

@@ -1,14 +0,0 @@
@PACKAGE_INIT@
# Pokemon Battle Simulator CMake Configuration
set(PokemonSim_VERSION "@PROJECT_VERSION@")
# Set up import targets
include("${CMAKE_CURRENT_LIST_DIR}/PokemonSimTargets.cmake")
# Set up variables for consumers
set(PokemonSim_LIBRARIES PokemonSim::pokemon_battle_sim)
set(PokemonSim_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
# Check required components
check_required_components(PokemonSim)

View File

@@ -20,3 +20,13 @@ function(set_project_warnings)
)
endif()
endfunction()
# Function to disable specific warnings for third-party libraries
function(disable_third_party_warnings target)
if(NOT MSVC)
target_compile_options(${target} PRIVATE
-Wno-sign-conversion
-Wno-conversion
)
endif()
endfunction()