From 011e3abe6928a73644733183548078c258c6f002 Mon Sep 17 00:00:00 2001 From: "Matt McCormick (thewtex)" Date: Wed, 9 Sep 2009 01:51:47 -0500 Subject: [PATCH] add cmake configuration --- CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4b2a821 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 2.6) +if(COMMAND cmake_policy) + cmake_policy(VERSION 2.6) +endif(COMMAND cmake_policy) + +project(screen-cpu-mem) + +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release CACHE STRING + "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." + FORCE) +endif(NOT CMAKE_BUILD_TYPE) + +add_executable(screen-cpu-usage screen-cpu-usage.cpp) +install(TARGETS screen-cpu-usage + RUNTIME + DESTINATION bin + ) + +install(PROGRAMS screen-mem-usage + DESTINATION bin + )