codebase refactor
This commit is contained in:
14
cmake/PokEngConfig.cmake.in
Normal file
14
cmake/PokEngConfig.cmake.in
Normal 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)
|
||||
@@ -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)
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user