diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-01-29 09:46:30 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-01-29 09:46:30 +0000 |
commit | 90f36bba94661dde8e12600c690ec3a111425b6c (patch) | |
tree | 722282ec15af2b1847b91f334508f697adf27605 | |
parent | af0e749d1b7be7b28556ee14ca9fba6ec387e33b (diff) | |
download | extra-cmake-modules-90f36bba94661dde8e12600c690ec3a111425b6c.tar.gz extra-cmake-modules-90f36bba94661dde8e12600c690ec3a111425b6c.tar.bz2 |
-make "make install" work in kate/data/
-add cmake/systeminfo/CMakeLists.txt, which prints out useful information when run
Alex
svn path=/trunk/KDE/kdelibs/; revision=503448
-rw-r--r-- | systeminfo/CMakeLists.txt | 34 | ||||
-rw-r--r-- | systeminfo/README | 6 |
2 files changed, 40 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 "-----------------------------------") + diff --git a/systeminfo/README b/systeminfo/README new file mode 100644 index 00000000..ec080fa8 --- /dev/null +++ b/systeminfo/README @@ -0,0 +1,6 @@ +Run cmake on the CMakeLists.txt file in this directory and it will print out +the value of some cmake variables. These variables can be used in +CMakeLists.txt to determine the current system type. + +Alex + |