diff options
author | h.udo <hudokkow@gmail.com> | 2016-09-08 18:15:54 +0100 |
---|---|---|
committer | h.udo <hudokkow@gmail.com> | 2016-12-21 10:04:18 +0000 |
commit | a18701e7b2fe03780f90502d5d51e09cdc3ad718 (patch) | |
tree | a9d2c2cca8599a18a78c6b1345f42e48e76ddb27 /cmake/KodiConfig.cmake.in | |
parent | f2b31fda391d3364b7307ab9f9216fa0ee7164c7 (diff) |
[cmake] Move to root folder: Move files
Diffstat (limited to 'cmake/KodiConfig.cmake.in')
-rw-r--r-- | cmake/KodiConfig.cmake.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cmake/KodiConfig.cmake.in b/cmake/KodiConfig.cmake.in new file mode 100644 index 0000000000..c02a68085a --- /dev/null +++ b/cmake/KodiConfig.cmake.in @@ -0,0 +1,34 @@ +set(APP_NAME @APP_NAME@) +set(APP_NAME_LC @APP_NAME_LC@) +set(APP_NAME_UC @APP_NAME_UC@) +set(APP_VERSION_MAJOR @APP_VERSION_MAJOR@) +set(APP_VERSION_MINOR @APP_VERSION_MINOR@) +if(NOT @APP_NAME_UC@_PREFIX) + set(@APP_NAME_UC@_PREFIX @APP_PREFIX@) +endif() +if(NOT @APP_NAME_UC@_INCLUDE_DIR) + set(@APP_NAME_UC@_INCLUDE_DIR @APP_INCLUDE_DIR@) +endif() +if(NOT @APP_NAME_UC@_LIB_DIR) + set(@APP_NAME_UC@_LIB_DIR @APP_LIB_DIR@) +endif() +if(NOT @APP_NAME_UC@_DATA_DIR) + set(@APP_NAME_UC@_DATA_DIR @APP_DATA_DIR@) +endif() +if(NOT WIN32) + set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} @CXX11_SWITCH@") +endif() +list(APPEND CMAKE_MODULE_PATH @APP_LIB_DIR@ @APP_DATA_DIR@/cmake) + +string(REPLACE ";" " " ARCH_DEFINES "@ARCH_DEFINES@") +add_definitions(${ARCH_DEFINES} -DBUILD_KODI_ADDON) + +if(NOT CORE_SYSTEM_NAME) + if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + set(CORE_SYSTEM_NAME "osx") + else() + string(TOLOWER ${CMAKE_SYSTEM_NAME} CORE_SYSTEM_NAME) + endif() +endif() + +include(AddonHelpers) |