diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-17 21:32:19 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-17 21:32:19 +0200 |
commit | 49afb06148ddcb44fe0dd1a87fa33ca47ed842d3 (patch) | |
tree | 2c9612a028d1bb4991832ca26bdba09ab4854dce | |
parent | 408b2658d510421c379cb3517dcbcbfb2b00f5ef (diff) | |
parent | 803dbf6245a88151e5cfbc39b84ac2d099d4dca6 (diff) | |
download | ayatana-indicator-power-49afb06148ddcb44fe0dd1a87fa33ca47ed842d3.tar.gz ayatana-indicator-power-49afb06148ddcb44fe0dd1a87fa33ca47ed842d3.tar.bz2 ayatana-indicator-power-49afb06148ddcb44fe0dd1a87fa33ca47ed842d3.zip |
Merge branch 'tari01-pr/standard-cmake'
Attribute GH PR #31: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/31
-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}") |