-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Linux support Improved build.py Finalized README.md
- Loading branch information
Showing
20 changed files
with
315 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
function(check_system) | ||
if (CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
if (WIN32) | ||
message(STATUS "Windows operating system detected") | ||
|
||
if (NOT MSVC) | ||
message(FATAL_ERROR "The project is designed to work with the MSVC compiler when compiling on Windows operating system") | ||
endif () | ||
|
||
message(STATUS "Disabling the console at program start-up") | ||
add_link_options(/SUBSYSTEM:windows /ENTRY:mainCRTStartup) # To hide the console window at program start-up on Windows | ||
elseif (UNIX AND NOT APPLE) | ||
message(STATUS "Linux kernel operating system detected") | ||
|
||
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
message(FATAL_ERROR "The project is designed to work with the GNU compiler (GCC) when compiling on Linux operating system") | ||
endif () | ||
else () | ||
message(FATAL_ERROR "At this point, the project is only designed to run on Windows or Linux operating systems") | ||
endif () | ||
else () | ||
message(FATAL_ERROR "The project is designed to work with an operating system that supports 64-bit extensions") | ||
endif () | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.