aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-20 15:44:05 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-20 15:44:05 +0200
commitccbc06f6041a2688019b5d8a15e7187a4911ee89 (patch)
tree43bd2f71ed8255b97c3af92b69ba25b084bff690 /cmake
parentAdd Kconfiglib to parse Kconfig/.config (diff)
downloadsmolbote-ccbc06f6041a2688019b5d8a15e7187a4911ee89.tar.xz
Add cmake manpage target
Diffstat (limited to 'cmake')
-rw-r--r--cmake/VendorConfig.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/VendorConfig.cmake b/cmake/VendorConfig.cmake
index c4f3ce9..b424378 100644
--- a/cmake/VendorConfig.cmake
+++ b/cmake/VendorConfig.cmake
@@ -5,10 +5,9 @@ string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME)
if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config")
message(FATAL_ERROR "No vendor config for ${SYSTEM_NAME}: ${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config is missing")
endif()
+# there is a .config in ${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}/.config
-# the .config has been found
-add_custom_target(config_header
- BYPRODUCTS "${PROJECT_BINARY_DIR}/include/config.h"
+add_custom_command(OUTPUT "${PROJECT_BINARY_DIR}/include/config.h"
COMMAND ${CMAKE_COMMAND} -E env "srctree=${PROJECT_SOURCE_DIR}"
${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR}/tools/Kconfiglib/genconfig.py" "--header-path=${PROJECT_BINARY_DIR}/include/config.h" "${PROJECT_SOURCE_DIR}/src/Kconfig"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/${SYSTEM_NAME}")
@@ -26,6 +25,8 @@ config("POI_EXE" "src/Kconfig")
config("INSTALL_BINDIR" "Kconfig")
config("INSTALL_LIBDIR" "Kconfig")
config("INSTALL_PLUGINDIR" "Kconfig")
+config("INSTALL_APPDIR" "Kconfig")
+config("INSTALL_ICONDIR" "Kconfig")
# QTBUG defines
execute_process(