diff options
author | Allen Winter <allen.winter@kdab.com> | 2011-06-28 17:13:05 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2011-06-28 17:13:05 -0400 |
commit | e15ffacc69242c89107afbfda6f8ece9f2b56633 (patch) | |
tree | 34bed177321c49f883d9d75616947a18f38c037f /systeminfo/CMakeLists.txt | |
parent | 5c79bed7250cb2f854bfb4f20e4d266925d94b54 (diff) | |
parent | c06badd8d431583071cad638fea082ca0776a0a3 (diff) | |
download | extra-cmake-modules-e15ffacc69242c89107afbfda6f8ece9f2b56633.tar.gz extra-cmake-modules-e15ffacc69242c89107afbfda6f8ece9f2b56633.tar.bz2 |
Merge branch 'allen' of /data/kde/trunk/KDE/kdelibs
Diffstat (limited to 'systeminfo/CMakeLists.txt')
-rw-r--r-- | systeminfo/CMakeLists.txt | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/systeminfo/CMakeLists.txt b/systeminfo/CMakeLists.txt new file mode 100644 index 00000000..77339d79 --- /dev/null +++ b/systeminfo/CMakeLists.txt @@ -0,0 +1,45 @@ +macro(LOG line) + message(STATUS ${line}) + file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/SystemInfo.txt "${line}\n") +endmacro(LOG line) + +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/SystemInfo.txt "CMake system information: \n") +message(STATUS "-----------------------------------") +message(STATUS "Printing system information: ") +message(STATUS "-----------------------------------") + +log("C compiler: ${CMAKE_C_COMPILER}") +log("CXX compiler: ${CMAKE_CXX_COMPILER}") +log("C compiler is gcc: ${CMAKE_COMPILER_IS_GNUCC}") +log("CXX compiler is g++: ${CMAKE_COMPILER_IS_GNUCXX}") +log("System: ${CMAKE_SYSTEM}") +log("System name: ${CMAKE_SYSTEM_NAME}") +log("System version: ${CMAKE_SYSTEM_VERSION}") + +if(UNIX) + log("This is some kind of UNIX environment") +endif(UNIX) + +if(WIN32) + log("This is Windows") +endif(WIN32) + +if(APPLE) + log("This is an Apple") +endif(APPLE) + +if(MINGW) + log("This is MinGW") +endif(MINGW) + +if(CYGWIN) + log("This is Cygwin") +endif(CYGWIN) + +if(BORLAND) + log("This is for a Borland compiler") +endif(BORLAND) + + +message(STATUS "-----------------------------------") + |