mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Remove leftovers from testing
This commit is contained in:
parent
41548ee307
commit
ea2cae18d8
|
|
@ -10,25 +10,14 @@ string(REPLACE "\"" "" CONFIGURATION "${CONFIGURATION}")
|
||||||
set(_project_dir "${PROJECT_SOURCE_DIR}/Minecraft.Client")
|
set(_project_dir "${PROJECT_SOURCE_DIR}/Minecraft.Client")
|
||||||
|
|
||||||
function(copy_tree_if_exists src_rel dst_rel)
|
function(copy_tree_if_exists src_rel dst_rel)
|
||||||
set(include_sources FALSE)
|
|
||||||
if(ARGC GREATER 2)
|
|
||||||
set(include_sources "${ARGV2}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(_src "${_project_dir}/${src_rel}")
|
set(_src "${_project_dir}/${src_rel}")
|
||||||
set(_dst "${OUTPUT_DIR}/${dst_rel}")
|
set(_dst "${OUTPUT_DIR}/${dst_rel}")
|
||||||
|
|
||||||
if(EXISTS "${_src}")
|
if(EXISTS "${_src}")
|
||||||
file(MAKE_DIRECTORY "${_dst}")
|
file(MAKE_DIRECTORY "${_dst}")
|
||||||
|
|
||||||
if(include_sources)
|
|
||||||
execute_process(
|
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory "${_src}" "${_dst}"
|
|
||||||
)
|
|
||||||
else()
|
|
||||||
file(GLOB_RECURSE _files RELATIVE "${_src}" "${_src}/*")
|
file(GLOB_RECURSE _files RELATIVE "${_src}" "${_src}/*")
|
||||||
|
|
||||||
foreach(_file IN LISTS _files) # if not a source file and doesn't start with Media, copy it
|
foreach(_file IN LISTS _files) # if not a source file
|
||||||
if(NOT _file MATCHES "\\.(cpp|c|h|hpp)$")
|
if(NOT _file MATCHES "\\.(cpp|c|h|hpp)$")
|
||||||
set(_full_src "${_src}/${_file}")
|
set(_full_src "${_src}/${_file}")
|
||||||
set(_full_dst "${_dst}/${_file}")
|
set(_full_dst "${_dst}/${_file}")
|
||||||
|
|
@ -46,7 +35,6 @@ function(copy_tree_if_exists src_rel dst_rel)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(ensure_dir rel_path)
|
function(ensure_dir rel_path)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue