<commit_before>cmake_minimum_required(VERSION 2.6)
project(VTerrain)

if(NOT CMAKE_BUILD_TYPE)
	set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
		"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
		FORCE)
endif(NOT CMAKE_BUILD_TYPE)

option(BUILD_OSG_VERSIONS "Build OSG versions of the applications" ON)

if(BUILD_OSG_VERSIONS)
	option(USE_OSG_VIEWER "Use Viewer class instead of SceneView" OFF)
	if(USE_OSG_VIEWER)
		set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS USE_OSG_VIEWER)
		option(USE_OSG_STATS "Enable the OSG stats display" OFF)
		if(USE_OSG_STATS)
			set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS USE_OSG_STATS)
		endif(USE_OSG_STATS)
	else(USE_OSG_VIEWER)
		unset(USE_OSG_STATS CACHE)
	endif(USE_OSG_VIEWER)
	set(BUILD_ENVIRO_OSG ON)
	set(BUILD_CMANAGER_OSG ON)
	set(BUILD_GLUTSIMPLE_OSG ON)
	set(BUILD_WXSIMPLE_OSG ON)
endif(BUILD_OSG_VERSIONS)

set(TERRAIN_SDK_ROOT "${CMAKE_SOURCE_DIR}/TerrainSDK")
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")

# Top level preprocessor definitions
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG VTDEBUG)
if(UNIX)
	set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS VTUNIX=1)
endif(UNIX)
if(APPLE)
	set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS __DARWIN_OSX__=1)
endif(APPLE)

# Find packages - most of these modules hide their include and library properties behind the advanced flag
find_package(wxWidgets COMPONENTS base core net xml adv html gl qa xrc aui richtext media)
find_package(GDAL)
find_package(BZip2)
find_package(CURL)
find_package(ZLIB)
find_package(JPEG)
find_package(PNG)
find_package(OSG)
find_package(QuikGrid)

# Optionally use NVidia performance monitoring if present
find_path(NVPERFSDK_INCLUDE_DIR NVPerfSDK.h PATHS "c:/Program Files/NVIDIA Corporation/NVIDIA PerfSDK/inc")
if(NVPERFSDK_INCLUDE_DIR)
	find_library(NVPERFSDK_LIBRARY NVPerfSDK.lib PATHS "c:/Program Files/NVIDIA Corporation/NVIDIA PerfSDK/lib/winxp_x86")
	if(NVPERFSDK_LIBRARY)
		set(NVPERFSDK_FOUND 1)
		option(NVIDIA_PERFORMANCE_MONITORING "Enable NVIDIA peformance monitoring dialog")
	endif(NVPERFSDK_LIBRARY)
endif(NVPERFSDK_INCLUDE_DIR)

add_subdirectory(TerrainSDK)
add_subdirectory(TerrainApps)
<commit_msg>Avoid problems with inbuilt wxWidgets jpeg libraries etc.<commit_after>cmake_minimum_required(VERSION 2.6)
project(VTerrain)

if(NOT CMAKE_BUILD_TYPE)
	set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
		"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
		FORCE)
endif(NOT CMAKE_BUILD_TYPE)

option(BUILD_OSG_VERSIONS "Build OSG versions of the applications" ON)

if(BUILD_OSG_VERSIONS)
	option(USE_OSG_VIEWER "Use Viewer class instead of SceneView" OFF)
	if(USE_OSG_VIEWER)
		set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS USE_OSG_VIEWER)
		option(USE_OSG_STATS "Enable the OSG stats display" OFF)
		if(USE_OSG_STATS)
			set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS USE_OSG_STATS)
		endif(USE_OSG_STATS)
	else(USE_OSG_VIEWER)
		unset(USE_OSG_STATS CACHE)
	endif(USE_OSG_VIEWER)
	set(BUILD_ENVIRO_OSG ON)
	set(BUILD_CMANAGER_OSG ON)
	set(BUILD_GLUTSIMPLE_OSG ON)
	set(BUILD_WXSIMPLE_OSG ON)
endif(BUILD_OSG_VERSIONS)

set(TERRAIN_SDK_ROOT "${CMAKE_SOURCE_DIR}/TerrainSDK")
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")

# Top level preprocessor definitions
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG VTDEBUG)
if(UNIX)
	set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS VTUNIX=1)
endif(UNIX)
if(APPLE)
	set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS __DARWIN_OSX__=1)
endif(APPLE)

# Find packages - most of these modules hide their include and library properties behind the advanced flag
set(wxWidgets_EXCLUDE_COMMON_LIBRARIES TRUE)
find_package(wxWidgets COMPONENTS base core net xml adv html gl qa xrc aui richtext media)
find_package(GDAL)
find_package(BZip2)
find_package(CURL)
find_package(ZLIB)
find_package(JPEG)
find_package(PNG)
find_package(OSG)
find_package(QuikGrid)

# Optionally use NVidia performance monitoring if present
find_path(NVPERFSDK_INCLUDE_DIR NVPerfSDK.h PATHS "c:/Program Files/NVIDIA Corporation/NVIDIA PerfSDK/inc")
if(NVPERFSDK_INCLUDE_DIR)
	find_library(NVPERFSDK_LIBRARY NVPerfSDK.lib PATHS "c:/Program Files/NVIDIA Corporation/NVIDIA PerfSDK/lib/winxp_x86")
	if(NVPERFSDK_LIBRARY)
		set(NVPERFSDK_FOUND 1)
		option(NVIDIA_PERFORMANCE_MONITORING "Enable NVIDIA peformance monitoring dialog")
	endif(NVPERFSDK_LIBRARY)
endif(NVPERFSDK_INCLUDE_DIR)

add_subdirectory(TerrainSDK)
add_subdirectory(TerrainApps)

{'fraction_non_alphanumeric': 0.06570713391739674, 'fraction_numerical': 0.003337505214851898, 'mean_word_length': 6.834967320261438, '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': '1013141', 'n_tokens_mistral': 1923, 'n_tokens_neox': 1802, 'n_words': 357}