include(CheckCXXSourceRuns)
include(FeatureSummary)
include(KatieBuildMacros)
-include(mkspecs/mkspecs.cmake)
# disable some compiler warnings
set(KATIE_NO_WARNINGS
endif()
endforeach()
+# https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
+# https://github.com/Kitware/CMake/blob/master/Modules/CMakeDetermineSystem.cmake
+if(CMAKE_SYSTEM_NAME MATCHES "(Linux|GNU)")
+ katie_definition(-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_GNU_SOURCE)
+elseif(CMAKE_SYSTEM_NAME MATCHES "(FreeBSD|DragonFly)")
+ katie_definition(-D_THREAD_SAFE)
+elseif(NOT CMAKE_SYSTEM_NAME MATCHES "(OpenBSD|NetBSD|Solaris|SunOS)")
+ message(FATAL_ERROR "Unknown platform '${CMAKE_SYSTEM_NAME}'")
+endif()
+
# mostly relevant to the build process, also stored in the version file for CMake and in qconfig.h.cmake
set(KATIE_MAJOR "4")
set(KATIE_MINOR "10")
)
install(
- DIRECTORY mkspecs
- DESTINATION ${KATIE_CMAKE_PATH}
- COMPONENT Devel
-)
-
-install(
FILES
${CMAKE_BINARY_DIR}/KatieConfig.cmake
${CMAKE_BINARY_DIR}/KatieConfigVersion.cmake
# KATIE_<COMPONENT>_LIBRARIES - component libraries to link against e.g. QtCore
# KATIE_<TOOL> - path to tool e.g. moc
# KATIE_<DATA>_PATH - path to different data type files e.g. translations
-# KATIE_MKSPECS_DIR - directory to mkspecs
# KATIE_TYPE - build type, either SHARED or STATIC
#
# As well as some that are unilkely to be needed outside the project:
set(KATIE_COMPONENTS @KATIE_COMPONENTS@)
set(KATIE_TOOLS @KATIE_TOOLS@)
set(KATIE_TOOLS_SUFFIX "@KATIE_TOOLS_SUFFIX@")
- set(KATIE_MKSPECS_DIR "${CMAKE_CURRENT_LIST_DIR}/mkspecs")
set(KATIE_TYPE @KATIE_TYPE@)
foreach(component ${KATIE_COMPONENTS})
set(KATIE_${uppertool} Katie::${tool})
endforeach()
- # Platform specific stuff and some tests
- include("${KATIE_MKSPECS_DIR}/mkspecs.cmake")
-
if(NOT "${KATIE_FIND_QUIETLY}")
message(STATUS "Found Katie version: ${KATIE_VERSION}")
endif()
set(QT4_INCLUDE_DIR ${KATIE_INCLUDES})
set(QT_LIBRARIES ${KATIE_LIBRARIES})
set(QT_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/Qt4UseFile.cmake")
- set(QT_MKSPECS_DIR "${KATIE_MKSPECS_DIR}")
+ set(QT_MKSPECS_DIR "${CMAKE_CURRENT_LIST_DIR}/mkspecs")
set(QT_LIBRARY_DIR ${KATIE_LIBRARIES_PATH})
set(QT_BINARY_DIR ${KATIE_BINARIES_PATH})
set(QT_PLUGINS_DIR ${KATIE_PLUGINS_PATH})
# Copyright (C) 2015, Ivailo Monev, <xakepa10@gmail.com>
# Redistribution and use is allowed according to the terms of the BSD license.
+# a function to append definitions to KATIE_DEFINITIONS which is stored in
+# KatieConfig.cmake and pkg-config files as interface definitions and add
+# definitions to the current directory scope
+function(KATIE_DEFINITION DEF)
+ set(KATIE_DEFINITIONS ${KATIE_DEFINITIONS} ${DEF} ${ARGN} PARENT_SCOPE)
+ add_definitions(${DEF} ${ARGN})
+endfunction()
+
# a function to check for header presence, if header is found a definition is
# added
function(KATIE_CHECK_HEADER FORHEADER)
+++ /dev/null
-macro(KATIE_DEFINITION DEF)
- set(KATIE_DEFINITIONS ${KATIE_DEFINITIONS} ${DEF} ${ARGN})
- add_definitions(${DEF} ${ARGN})
-endmacro()
-
-# https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
-# https://github.com/Kitware/CMake/blob/master/Modules/CMakeDetermineSystem.cmake
-if(CMAKE_SYSTEM_NAME MATCHES "(Linux|GNU)")
- katie_definition(-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_GNU_SOURCE)
-elseif(CMAKE_SYSTEM_NAME MATCHES "(FreeBSD|DragonFly)")
- katie_definition(-D_THREAD_SAFE)
-elseif(NOT CMAKE_SYSTEM_NAME MATCHES "(OpenBSD|NetBSD|Solaris|SunOS)")
- message(FATAL_ERROR "Unknown platform '${CMAKE_SYSTEM_NAME}'")
-endif()
lib/cmake/Katie/KatieTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/Katie/KatieTargets.cmake
lib/cmake/Katie/Qt4UseFile.cmake
-lib/cmake/Katie/mkspecs/mkspecs.cmake
lib/katie/imports/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so
lib/katie/imports/Qt/labs/folderlistmodel/qmldir
lib/katie/imports/Qt/labs/gestures/libqmlgesturesplugin.so
lib/cmake/Katie/KatieTargets-relwithdebinfo.cmake
lib/cmake/Katie/KatieTargets.cmake
lib/cmake/Katie/Qt4UseFile.cmake
-lib/cmake/Katie/mkspecs/mkspecs.cmake
lib/katie/imports/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so
lib/katie/imports/Qt/labs/folderlistmodel/qmldir
lib/katie/imports/Qt/labs/gestures/libqmlgesturesplugin.so
lib/cmake/Katie/KatieTargets${MODCMAKE_BUILD_SUFFIX}
lib/cmake/Katie/KatieTargets.cmake
lib/cmake/Katie/Qt4UseFile.cmake
-lib/cmake/Katie/mkspecs/
-lib/cmake/Katie/mkspecs/mkspecs.cmake
lib/katie/
lib/katie/imports/
lib/katie/imports/Qt/