CMake works on all our supported platforms, like MSVC, Mingw, GCC, Clang, and many more. It allows for a single way of doing things, so no longer we need shell scripts and vbs scripts to work on all our supported platforms. Additionally, CMake allows to generate project files for like MSVC, KDevelop, etc. This heavily reduces the lines of code we need to support multiple platforms from a project perspective. Addtiionally, this heavily improves our detection of libraries, etc.
		
			
				
	
	
		
			14 lines
		
	
	
		
			360 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			360 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
# Autodetect editbin. Only useful for MSVC.
 | 
						|
 | 
						|
get_filename_component(MSVC_COMPILE_DIRECTORY ${CMAKE_CXX_COMPILER} DIRECTORY)
 | 
						|
find_program(
 | 
						|
    EDITBIN_EXECUTABLE editbin.exe
 | 
						|
    HINTS ${MSVC_COMPILE_DIRECTORY}
 | 
						|
)
 | 
						|
 | 
						|
include(FindPackageHandleStandardArgs)
 | 
						|
find_package_handle_standard_args(Editbin
 | 
						|
    FOUND_VAR EDITBIN_FOUND
 | 
						|
    REQUIRED_VARS EDITBIN_EXECUTABLE
 | 
						|
)
 |