diff options
author | Robert Tari <robert@tari.in> | 2021-05-17 19:21:02 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-17 21:00:45 +0200 |
commit | 803dbf6245a88151e5cfbc39b84ac2d099d4dca6 (patch) | |
tree | 2c9612a028d1bb4991832ca26bdba09ab4854dce | |
parent | 408b2658d510421c379cb3517dcbcbfb2b00f5ef (diff) | |
download | ayatana-indicator-power-803dbf6245a88151e5cfbc39b84ac2d099d4dca6.tar.gz ayatana-indicator-power-803dbf6245a88151e5cfbc39b84ac2d099d4dca6.tar.bz2 ayatana-indicator-power-803dbf6245a88151e5cfbc39b84ac2d099d4dca6.zip |
CMakeLists.txt: Add standard Ayatana CMake bits
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4be6ca1..24f800e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,10 @@ project(ayatana-indicator-power C CXX) cmake_minimum_required(VERSION 3.13) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + SET(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "..." FORCE) +endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) set(PROJECT_VERSION "2.1.2") @@ -106,3 +110,8 @@ if (ENABLE_TESTS) ) endif () endif () + +# Display config info + +message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}") +message(STATUS "Unit tests: ${ENABLE_TESTS}") |