From 39b1357dca42247aeea273cd3fa09dbb28e990f7 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 8 Mar 2024 12:20:35 +0900 Subject: [PATCH] cmake files: change keywords to lower case Signed-off-by: Michele Calgaro (cherry picked from commit 0afc7ddb4714dd26179d283cf9c0cabc00ccb2a5) --- CMakeLists.txt | 52 ++++++++++++++--------------- ConfigureChecks.cmake | 30 ++++++++--------- configdialog/CMakeLists.txt | 2 +- doc/CMakeLists.txt | 2 +- plugins/applications/CMakeLists.txt | 2 +- plugins/common/CMakeLists.txt | 4 +-- plugins/plasmoids/CMakeLists.txt | 2 +- plugins/recentstuff/CMakeLists.txt | 2 +- plugins/settings/CMakeLists.txt | 2 +- plugins/strigi/CMakeLists.txt | 2 +- skin/raster/2panels/CMakeLists.txt | 4 +-- skin/raster/default/CMakeLists.txt | 4 +-- 12 files changed, 54 insertions(+), 54 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42aa68c..b7a3f0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,32 +47,32 @@ tde_setup_paths( ) ##### set version numbers ####################### # For versions that are stable set to 1, else to 0 -SET(APPLICATION_STABLE 1) - -SET(LIB_MAJOR 4) -SET(LIB_MINOR 9) -SET(LIB_RELEASE 3) -SET(LIB_SUB_RELEASE 1) -SET(APPLICATION_INTERNAL_VERSION "20070516") -SET(APPLICATION_DATE "2007-05-16") - -SET(APPLICATION_NAME "${PROJECT_NAME}") -SET(APPLICATION_MAIN_VERSION "0.${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}") - -IF (APPLICATION_STABLE) - SET(APPLICATION_STABLE_RELEASE ".${LIB_SUB_RELEASE}") - SET(APPLICATION_VERSION "${APPLICATION_MAIN_VERSION}.${LIB_SUB_RELEASE}") - SET(GENTOO_VERSION "${APPLICATION_MAIN_VERSION}.${LIB_SUB_RELEASE}") -ELSE (APPLICATION_APPLICATION_STABLE "") - SET(STABLE_RELEASE) - SET(APPLICATION_VERSION "${APPLICATION_MAIN_VERSION}-${LIB_SUB_RELEASE}") - SET(GENTOO_VERSION "${APPLICATION_MAIN_VERSION}_pre${LIB_SUB_RELEASE}") -ENDIF (APPLICATION_STABLE) - -SET(PACKAGE_VERSION ${APPLICATION_VERSION}) - -SET(STRIGI_VERSION "0.3.11") -SET(GENTOO_KEYWORDS "x86 ~ppc ~amd64") +set(APPLICATION_STABLE 1) + +set(LIB_MAJOR 4) +set(LIB_MINOR 9) +set(LIB_RELEASE 3) +set(LIB_SUB_RELEASE 1) +set(APPLICATION_INTERNAL_VERSION "20070516") +set(APPLICATION_DATE "2007-05-16") + +set(APPLICATION_NAME "${PROJECT_NAME}") +set(APPLICATION_MAIN_VERSION "0.${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE}") + +if (APPLICATION_STABLE) + set(APPLICATION_STABLE_RELEASE ".${LIB_SUB_RELEASE}") + set(APPLICATION_VERSION "${APPLICATION_MAIN_VERSION}.${LIB_SUB_RELEASE}") + set(GENTOO_VERSION "${APPLICATION_MAIN_VERSION}.${LIB_SUB_RELEASE}") +else (APPLICATION_APPLICATION_STABLE "") + set(STABLE_RELEASE) + set(APPLICATION_VERSION "${APPLICATION_MAIN_VERSION}-${LIB_SUB_RELEASE}") + set(GENTOO_VERSION "${APPLICATION_MAIN_VERSION}_pre${LIB_SUB_RELEASE}") +endif (APPLICATION_STABLE) + +set(PACKAGE_VERSION ${APPLICATION_VERSION}) + +set(STRIGI_VERSION "0.3.11") +set(GENTOO_KEYWORDS "x86 ~ppc ~amd64") ##### user requested modules #################### diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 7e13f24..1e05c63 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -42,22 +42,22 @@ check_function_exists( statvfs HAVE_STATVFS ) #### Find strigi if needed ####################### -IF (USE_STRIGI) - FIND_PACKAGE(Strigi REQUIRED) - INCLUDE_DIRECTORIES(${STRIGI_INCLUDE_DIR}) - MESSAGE(STATUS "Strigi support is: ON!") -ELSE (USE_STRIGI) - MESSAGE(STATUS "Strigi support is: OFF!") -ENDIF (USE_STRIGI) +if (USE_STRIGI) + find_package(Strigi REQUIRED) + include_directories(${STRIGI_INCLUDE_DIR}) + message(STATUS "Strigi support is: ON!") +else (USE_STRIGI) + message(STATUS "Strigi support is: OFF!") +endif (USE_STRIGI) #### Find menudrake if needed ##################### -FIND_PROGRAM(HAVE_MANDRAKE menudrake) -IF (HAVE_MANDRAKE AND USE_MENUDRAKE) - SET(MANDRAKE "1") - MESSAGE(STATUS "Will use 'menudrake' instead of 'kmenuedit'!") -ELSE (HAVE_MANDRAKE AND USE_MENUDRAKE) - SET(MANDRAKE "") - MESSAGE(STATUS "Will use 'kmenuedit'!") -ENDIF (HAVE_MANDRAKE AND USE_MENUDRAKE) +find_program(HAVE_MANDRAKE menudrake) +if (HAVE_MANDRAKE AND USE_MENUDRAKE) + set(MANDRAKE "1") + message(STATUS "Will use 'menudrake' instead of 'kmenuedit'!") +else (HAVE_MANDRAKE AND USE_MENUDRAKE) + set(MANDRAKE "") + message(STATUS "Will use 'kmenuedit'!") +endif (HAVE_MANDRAKE AND USE_MENUDRAKE) diff --git a/configdialog/CMakeLists.txt b/configdialog/CMakeLists.txt index 869f6ed..050e5be 100644 --- a/configdialog/CMakeLists.txt +++ b/configdialog/CMakeLists.txt @@ -43,7 +43,7 @@ tde_add_executable( kbfxconfigapp AUTOMOC ##### configuration files ####################### -INSTALL(FILES kbfxconfigappui.rc DESTINATION ${DATA_INSTALL_DIR}/kbfxconfigapp) +install(FILES kbfxconfigappui.rc DESTINATION ${DATA_INSTALL_DIR}/kbfxconfigapp) ##### desktop files ############################# diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 14ae1a2..4db536c 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -11,7 +11,7 @@ add_subdirectory( en ) -INSTALL( +install( FILES AUTHORS # ChangeLog diff --git a/plugins/applications/CMakeLists.txt b/plugins/applications/CMakeLists.txt index 702a00c..6bc2ba9 100644 --- a/plugins/applications/CMakeLists.txt +++ b/plugins/applications/CMakeLists.txt @@ -47,4 +47,4 @@ tde_add_library( ${target} SHARED AUTOMOC ##### headers ####################################### file( GLOB HEADERS *.h ) -INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) +install(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) diff --git a/plugins/common/CMakeLists.txt b/plugins/common/CMakeLists.txt index 96b4a77..a42ea85 100644 --- a/plugins/common/CMakeLists.txt +++ b/plugins/common/CMakeLists.txt @@ -1,3 +1,3 @@ -FILE(GLOB HEADERS *.h) +file(GLOB HEADERS *.h) -INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) +install(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) diff --git a/plugins/plasmoids/CMakeLists.txt b/plugins/plasmoids/CMakeLists.txt index db620f8..3e2a830 100644 --- a/plugins/plasmoids/CMakeLists.txt +++ b/plugins/plasmoids/CMakeLists.txt @@ -47,4 +47,4 @@ tde_add_library( ${target} SHARED AUTOMOC ##### headers ####################################### file( GLOB HEADERS *.h ) -INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) +install(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) diff --git a/plugins/recentstuff/CMakeLists.txt b/plugins/recentstuff/CMakeLists.txt index 659f8ff..b9cb2ec 100644 --- a/plugins/recentstuff/CMakeLists.txt +++ b/plugins/recentstuff/CMakeLists.txt @@ -47,4 +47,4 @@ tde_add_library( ${target} SHARED AUTOMOC ##### headers ####################################### file( GLOB HEADERS *.h ) -INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) \ No newline at end of file +install(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) \ No newline at end of file diff --git a/plugins/settings/CMakeLists.txt b/plugins/settings/CMakeLists.txt index e8c80c7..25a67af 100644 --- a/plugins/settings/CMakeLists.txt +++ b/plugins/settings/CMakeLists.txt @@ -47,4 +47,4 @@ tde_add_library( ${target} SHARED AUTOMOC ##### headers ####################################### file( GLOB HEADERS *.h ) -INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) +install(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) diff --git a/plugins/strigi/CMakeLists.txt b/plugins/strigi/CMakeLists.txt index 8f9ffd0..054374b 100644 --- a/plugins/strigi/CMakeLists.txt +++ b/plugins/strigi/CMakeLists.txt @@ -47,4 +47,4 @@ tde_add_library( ${target} SHARED AUTOMOC ##### headers ####################################### file( GLOB HEADERS *.h ) -INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) \ No newline at end of file +install(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/plugins) \ No newline at end of file diff --git a/skin/raster/2panels/CMakeLists.txt b/skin/raster/2panels/CMakeLists.txt index 107e44d..aec7973 100644 --- a/skin/raster/2panels/CMakeLists.txt +++ b/skin/raster/2panels/CMakeLists.txt @@ -1,4 +1,4 @@ -FILE(GLOB PNGFILES *.png kbfxlayoutrc kbfxfontrc version-2 ) +file(GLOB PNGFILES *.png kbfxlayoutrc kbfxfontrc version-2 ) -INSTALL(FILES ${PNGFILES} +install(FILES ${PNGFILES} DESTINATION ${DATA_INSTALL_DIR}/kbfx/skins/2panels) diff --git a/skin/raster/default/CMakeLists.txt b/skin/raster/default/CMakeLists.txt index b30b0ac..fcf07de 100644 --- a/skin/raster/default/CMakeLists.txt +++ b/skin/raster/default/CMakeLists.txt @@ -1,4 +1,4 @@ -FILE(GLOB PNGFILES *.png kbfxlayoutrc kbfxfontrc version-2 ) +file(GLOB PNGFILES *.png kbfxlayoutrc kbfxfontrc version-2 ) -INSTALL(FILES ${PNGFILES} +install(FILES ${PNGFILES} DESTINATION ${DATA_INSTALL_DIR}/kbfx/skins/default)