diff options
Diffstat (limited to 'systeminfo/CMakeLists.txt')
-rw-r--r-- | systeminfo/CMakeLists.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/systeminfo/CMakeLists.txt b/systeminfo/CMakeLists.txt new file mode 100644 index 00000000..a134ee78 --- /dev/null +++ b/systeminfo/CMakeLists.txt @@ -0,0 +1,34 @@ +message(STATUS "-----------------------------------") +message(STATUS "Printing system information: ") +message(STATUS "-----------------------------------") +message(STATUS "C compiler: ${CMAKE_C_COMPILER}") +message(STATUS "CXX compiler: ${CMAKE_CXX_COMPILER}") +message(STATUS "C compiler is gcc: ${CMAKE_COMPILER_IS_GNUCC}") +message(STATUS "CXX compiler is g++: ${CMAKE_COMPILER_IS_GNUCXX}") +message(STATUS "System: ${CMAKE_SYSTEM}") +message(STATUS "System name: ${CMAKE_SYSTEM_NAME}") +message(STATUS "System version: ${CMAKE_SYSTEM_VERSION}") + +if(UNIX) + message(STATUS "This is some kind of UNIX environment") +endif(UNIX) + +if(WIN32) + message(STATUS "This is Windows") +endif(WIN32) + +if(APPLE) + message(STATUS "This is an Apple") +endif(APPLE) + +if(MINGW) + message(STATUS "This is MinGW") +endif(MINGW) + +if(CYGWIN) + message(STATUS "This is Cygwin") +endif(CYGWIN) + + +message(STATUS "-----------------------------------") + |