<commit_before>#
# OpenVR OSVR driver
#

# For our generated file
set(CMAKE_INCLUDE_CURRENT_DIR ON)

#
# Detect available C++ language, library, and compiler features
#
include(WriteCompilerDetectionHeader)
write_compiler_detection_header(
	FILE "osvr_compiler_detection.h"
	PREFIX OSVR
	COMPILERS GNU Clang AppleClang MSVC
	FEATURES cxx_override cxx_noexcept
)

include(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_CXX11_STANDARD_COMPILE_OPTION})
check_cxx_source_compiles("#include <memory>\nint main(int, char**) { std::unique_ptr<int> i = std::make_unique<int>(0); }" OSVR_HAS_STD_MAKE_UNIQUE)
configure_file(osvr_compiler_tests.h.in "${CMAKE_CURRENT_BINARY_DIR}/osvr_compiler_tests.h")

# Disable 'lib' prefix on POSIX systems
set(CMAKE_SHARED_LIBRARY_PREFIX "")

add_library(driver_osvr
	SHARED
	Logging.h
	OSVRDisplay.h
	OSVRDisplay.cpp
	OSVRTrackedDevice.cpp
	OSVRTrackedDevice.h
	OSVRTrackedHMD.cpp
	OSVRTrackedHMD.h
	OSVRTrackingReference.cpp
	OSVRTrackingReference.h
	ServerDriver_OSVR.cpp
	ServerDriver_OSVR.h
	Settings.h
	ValveStrCpy.h
	driver_osvr.cpp
	driver_osvr.h
	identity.h
	make_unique.h
	matrix_cast.h
	osvr_dll_export.h
	platform_fixes.h
	pretty_print.h
)
#	WatchdogDriver_OSVR.cpp
#	WatchdogDriver_OSVR.h<commit_msg>Build a MODULE instead of SHARED library. (Eliminates .lib file.)<commit_after>#
# OpenVR OSVR driver
#

# For our generated file
set(CMAKE_INCLUDE_CURRENT_DIR ON)

#
# Detect available C++ language, library, and compiler features
#
include(WriteCompilerDetectionHeader)
write_compiler_detection_header(
	FILE "osvr_compiler_detection.h"
	PREFIX OSVR
	COMPILERS GNU Clang AppleClang MSVC
	FEATURES cxx_override cxx_noexcept
)

include(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_CXX11_STANDARD_COMPILE_OPTION})
check_cxx_source_compiles("#include <memory>\nint main(int, char**) { std::unique_ptr<int> i = std::make_unique<int>(0); }" OSVR_HAS_STD_MAKE_UNIQUE)
configure_file(osvr_compiler_tests.h.in "${CMAKE_CURRENT_BINARY_DIR}/osvr_compiler_tests.h")

# Disable 'lib' prefix on POSIX systems
set(CMAKE_SHARED_LIBRARY_PREFIX "")

add_library(driver_osvr
	MODULE
	Logging.h
	OSVRDisplay.h
	OSVRDisplay.cpp
	OSVRTrackedDevice.cpp
	OSVRTrackedDevice.h
	OSVRTrackedHMD.cpp
	OSVRTrackedHMD.h
	OSVRTrackingReference.cpp
	OSVRTrackingReference.h
	ServerDriver_OSVR.cpp
	ServerDriver_OSVR.h
	Settings.h
	ValveStrCpy.h
	driver_osvr.cpp
	driver_osvr.h
	identity.h
	make_unique.h
	matrix_cast.h
	osvr_dll_export.h
	platform_fixes.h
	pretty_print.h
)
#	WatchdogDriver_OSVR.cpp
#	WatchdogDriver_OSVR.h
{'fraction_non_alphanumeric': 0.08144972720187062, 'fraction_numerical': 0.002338269680436477, 'mean_word_length': 7.14920634920635, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '188507', 'n_tokens_mistral': 1034, 'n_tokens_neox': 996, 'n_words': 162}