<commit_before>cmake_minimum_required(VERSION 2.8.3)

project(gdal_install)

file(GLOB GDAL_APPS "apps/*.exe")
foreach(GDAL_APP ${GDAL_APPS})
install(FILES ${GDAL_APP} DESTINATION bin/gdal/apps  COMPONENT Development)
endforeach()
        
file(GLOB GDAL_DATAS "data/*.*")
foreach(GDAL_DATA ${GDAL_DATAS})
install(FILES ${GDAL_DATA} DESTINATION bin/gdal-data COMPONENT Development)
endforeach()
    
   
	# if exist $(OUTPUT_DIR)\bin\gdal\plugins del $(OUTPUT_DIR)\bin\gdal\plugins\*.dll
    # if exist $(OUTPUT_DIR)\bin\gdal\plugins-optional del $(OUTPUT_DIR)\bin\gdal\plugins-optional\*.dll
	# if exist $(OUTPUT_DIR)\bin\gdal\plugins-external del $(OUTPUT_DIR)\bin\gdal\plugins-external\*.dll

file(GLOB ${PROJECT_NAME}_HEADERS 
"${GDAL_INCLUDE_DIR}/port/*.h" 
"${GDAL_INCLUDE_DIR}/gcore/*.h"
"${GDAL_INCLUDE_DIR}/alg/*.h"
"${GDAL_INCLUDE_DIR}/ogr/*.h"
"${GDAL_INCLUDE_DIR}/frmts/mem/memdataset.h"
"${GDAL_INCLUDE_DIR}/frmts/raw/rawdataset.h"
"${GDAL_INCLUDE_DIR}/frmts/vrt/*.h"
"${GDAL_INCLUDE_DIR}/ogr/ogrsf_frmts/*.h")

file(GLOB ${PROJECT_NAME}_LIBS  "${GDAL_LIB_DIR}/gdal_i.lib" )

file(GLOB ${PROJECT_NAME}_DLLS "${GDAL_LIB_DIR}/*.dll" )

foreach(${PROJECT_NAME}_HEADER ${${PROJECT_NAME}_HEADERS})
install(FILES ${${PROJECT_NAME}_HEADER}
  DESTINATION include
  COMPONENT Development)
endforeach()
  
foreach(${PROJECT_NAME}_LIB ${${PROJECT_NAME}_LIBS})
install(FILES ${${PROJECT_NAME}_LIB}
  DESTINATION lib
  COMPONENT Development)
endforeach()

foreach(${PROJECT_NAME}_DLL ${${PROJECT_NAME}_DLLS})
install(FILES ${${PROJECT_NAME}_DLL}
  DESTINATION bin
  COMPONENT Development)
endforeach()<commit_msg>use GDAL_BUILD_DIR in install_gdal CMakeLists<commit_after>cmake_minimum_required(VERSION 2.8.3)

project(gdal_install)

file(GLOB GDAL_APPS "${GDAL_BUILD_DIR}/apps/*.exe")
foreach(GDAL_APP ${GDAL_APPS})
install(FILES ${GDAL_APP} DESTINATION bin/gdal/apps  COMPONENT Development)
endforeach()
        
file(GLOB GDAL_DATAS "${GDAL_BUILD_DIR}/data/*.*")
message(STATUS ${GDAL_DATAS})
foreach(GDAL_DATA ${GDAL_DATAS})
install(FILES ${GDAL_DATA} DESTINATION bin/gdal-data COMPONENT Development)
endforeach()
    
   
	# if exist $(OUTPUT_DIR)\bin\gdal\plugins del $(OUTPUT_DIR)\bin\gdal\plugins\*.dll
    # if exist $(OUTPUT_DIR)\bin\gdal\plugins-optional del $(OUTPUT_DIR)\bin\gdal\plugins-optional\*.dll
	# if exist $(OUTPUT_DIR)\bin\gdal\plugins-external del $(OUTPUT_DIR)\bin\gdal\plugins-external\*.dll

file(GLOB ${PROJECT_NAME}_HEADERS 
"${GDAL_BUILD_DIR}/port/*.h" 
"${GDAL_BUILD_DIR}/gcore/*.h"
"${GDAL_BUILD_DIR}/alg/*.h"
"${GDAL_BUILD_DIR}/ogr/*.h"
"${GDAL_BUILD_DIR}/frmts/mem/memdataset.h"
"${GDAL_BUILD_DIR}/frmts/raw/rawdataset.h"
"${GDAL_BUILD_DIR}/frmts/vrt/*.h"
"${GDAL_BUILD_DIR}/ogr/ogrsf_frmts/*.h")

file(GLOB ${PROJECT_NAME}_LIBS  "${GDAL_BUILD_DIR}/gdal_i.lib" )

file(GLOB ${PROJECT_NAME}_DLLS "${GDAL_BUILD_DIR}/*.dll" )

foreach(${PROJECT_NAME}_HEADER ${${PROJECT_NAME}_HEADERS})
install(FILES ${${PROJECT_NAME}_HEADER}
  DESTINATION include
  COMPONENT Development)
endforeach()
  
foreach(${PROJECT_NAME}_LIB ${${PROJECT_NAME}_LIBS})
install(FILES ${${PROJECT_NAME}_LIB}
  DESTINATION lib
  COMPONENT Development)
endforeach()

foreach(${PROJECT_NAME}_DLL ${${PROJECT_NAME}_DLLS})
install(FILES ${${PROJECT_NAME}_DLL}
  DESTINATION bin
  COMPONENT Development)
endforeach()
{'fraction_non_alphanumeric': 0.16757246376811594, 'fraction_numerical': 0.0018115942028985507, 'mean_word_length': 6.758782201405152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6482739', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1299, 'n_words': 175}