<commit_before>add_subdirectory(wx)

set(ENVIRO_SOURCE_FILES
	CarEngine.cpp EarthView.cpp Engines.cpp Enviro.cpp Hawaii.cpp Nevada.cpp Options.cpp SpecificTerrain.cpp
	Vehicles.cpp)
	
set(ENVIRO_SOURCE_FILES_WX
	wx/canvas.cpp wx/enviro_wdr.cpp wx/EnviroApp.cpp wx/EnviroFrame.cpp wx/EnviroGUI.cpp wx/StatusBar.cpp)
	
set(ENVIRO_HEADER_FILES
	CarEngine.h Engines.h Enviro.h enviroenum.h Hawaii.h Nevada.h Options.h PlantingOptions.h SpecificTerrain.h Vehicles.h)
	
set(ENVIRO_HEADER_FILES_WX
	wx/canvas.h wx/enviro_wdr.h wx/EnviroApp.h wx/EnviroFrame.h wx/EnviroGUI.h wx/menu_id.h wx/StatusBar.h wx/TextureDlg.h
	wx/TimeDlg.h wx/VehicleDlg.h)
	
set(ENVIRO_RC_FILES
	wx/enviro-wx.rc)
	
if(BUILD_ENVIRO_OSG)
	if(MSVC)
		add_executable(enviro_osg WIN32 ${ENVIRO_SOURCE_FILES} ${ENVIRO_SOURCE_FILES_WX} ${ENVIRO_HEADER_FILES}
			${ENVIRO_HEADER_FILES_WX} ${ENVIRO_RC_FILES} vtlib_headers.cpp wx/wx_headers.cpp)
		set_source_files_properties(${ENVIRO_SOURCE_FILES} PROPERTIES COMPILE_FLAGS /Yuvtlib/vtlib.h)
		set_source_files_properties(vtlib_headers.cpp PROPERTIES COMPILE_FLAGS /Ycvtlib/vtlib.h)
		set_source_files_properties(${ENVIRO_SOURCE_FILES_WX} PROPERTIES COMPILE_FLAGS "/Yuwx/wxprec.h /Fpwxprec.pch")
		set_source_files_properties(wx/wx_headers.cpp PROPERTIES COMPILE_FLAGS "/Ycwx/wxprec.h /Fpwxprec.pch")
	else(MSVC)
		add_executable(enviro_osg WIN32 ${ENVIRO_SOURCE_FILES} ${ENVIRO_SOURCE_FILES_WX} ${ENVIRO_HEADER_FILES}
			${ENVIRO_HEADER_FILES_WX} ${ENVIRO_RC_FILES})
	endif(MSVC)

	# Internal dependencies for this target
	add_dependencies(enviro_osg envdlg minidata vtdata vtlib_osg vtui xmlhelper)

	# Specify common preprocessor definitions for this target
	set_property(TARGET enviro_osg APPEND PROPERTY COMPILE_DEFINITIONS VTLIB_OSG=1)

	# Windows specific stuff
	if (WIN32)
		set_property(TARGET enviro_osg APPEND PROPERTY COMPILE_DEFINITIONS _CRT_SECURE_NO_DEPRECATE _UNICODE UNICODE WXUSINGDLL=1)
		set_property(TARGET enviro_osg APPEND PROPERTY LINK_FLAGS_DEBUG /NODEFAULTLIB:msvcrt;wxpngd;wxtiffd;wxjpegd;wxzlibd)
		set_property(TARGET enviro_osg APPEND PROPERTY LINK_FLAGS /NODEFAULTLIB:wxpng;wxtiff;wxjpeg;wxzlib)
	endif (WIN32)

	# Specify debug preprocessor definitions for this target
	set_property(TARGET vtbuilder APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG VTDEBUG)<commit_msg>Fixed typo<commit_after>add_subdirectory(wx)

set(ENVIRO_SOURCE_FILES
	CarEngine.cpp EarthView.cpp Engines.cpp Enviro.cpp Hawaii.cpp Nevada.cpp Options.cpp SpecificTerrain.cpp
	Vehicles.cpp)
	
set(ENVIRO_SOURCE_FILES_WX
	wx/canvas.cpp wx/enviro_wdr.cpp wx/EnviroApp.cpp wx/EnviroFrame.cpp wx/EnviroGUI.cpp wx/StatusBar.cpp)
	
set(ENVIRO_HEADER_FILES
	CarEngine.h Engines.h Enviro.h enviroenum.h Hawaii.h Nevada.h Options.h PlantingOptions.h SpecificTerrain.h Vehicles.h)
	
set(ENVIRO_HEADER_FILES_WX
	wx/canvas.h wx/enviro_wdr.h wx/EnviroApp.h wx/EnviroFrame.h wx/EnviroGUI.h wx/menu_id.h wx/StatusBar.h wx/TextureDlg.h
	wx/TimeDlg.h wx/VehicleDlg.h)
	
set(ENVIRO_RC_FILES
	wx/enviro-wx.rc)
	
if(BUILD_ENVIRO_OSG)
	if(MSVC)
		add_executable(enviro_osg WIN32 ${ENVIRO_SOURCE_FILES} ${ENVIRO_SOURCE_FILES_WX} ${ENVIRO_HEADER_FILES}
			${ENVIRO_HEADER_FILES_WX} ${ENVIRO_RC_FILES} vtlib_headers.cpp wx/wx_headers.cpp)
		set_source_files_properties(${ENVIRO_SOURCE_FILES} PROPERTIES COMPILE_FLAGS /Yuvtlib/vtlib.h)
		set_source_files_properties(vtlib_headers.cpp PROPERTIES COMPILE_FLAGS /Ycvtlib/vtlib.h)
		set_source_files_properties(${ENVIRO_SOURCE_FILES_WX} PROPERTIES COMPILE_FLAGS "/Yuwx/wxprec.h /Fpwxprec.pch")
		set_source_files_properties(wx/wx_headers.cpp PROPERTIES COMPILE_FLAGS "/Ycwx/wxprec.h /Fpwxprec.pch")
	else(MSVC)
		add_executable(enviro_osg WIN32 ${ENVIRO_SOURCE_FILES} ${ENVIRO_SOURCE_FILES_WX} ${ENVIRO_HEADER_FILES}
			${ENVIRO_HEADER_FILES_WX} ${ENVIRO_RC_FILES})
	endif(MSVC)

	# Internal dependencies for this target
	add_dependencies(enviro_osg envdlg minidata vtdata vtlib_osg vtui xmlhelper)

	# Specify common preprocessor definitions for this target
	set_property(TARGET enviro_osg APPEND PROPERTY COMPILE_DEFINITIONS VTLIB_OSG=1)

	# Windows specific stuff
	if (WIN32)
		set_property(TARGET enviro_osg APPEND PROPERTY COMPILE_DEFINITIONS _CRT_SECURE_NO_DEPRECATE _UNICODE UNICODE WXUSINGDLL=1)
		set_property(TARGET enviro_osg APPEND PROPERTY LINK_FLAGS_DEBUG /NODEFAULTLIB:msvcrt;wxpngd;wxtiffd;wxjpegd;wxzlibd)
		set_property(TARGET enviro_osg APPEND PROPERTY LINK_FLAGS /NODEFAULTLIB:wxpng;wxtiff;wxjpeg;wxzlib)
	endif (WIN32)

	# Specify debug preprocessor definitions for this target
	set_property(TARGET enviro_osgr APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG VTDEBUG)
{'fraction_non_alphanumeric': 0.07987844584328196, 'fraction_numerical': 0.004341219882787063, 'mean_word_length': 7.055944055944056, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6518749', 'n_tokens_mistral': 1937, 'n_tokens_neox': 1874, 'n_words': 292}