# Переменные описания проектов
add_definitions(-DAPP_NAME="""${PROJECT_NAME}"""
                -DAPP_PRODUCT="""${PRODUCTNAME}"""
                -DAPP_VERSION="""${PROJECT_VERSION}"""
                -DAPP_DESCRIPTION="""${DESCRIPTION}"""
                -DAPP_COMPANY="""${COMPANY}"""
                -DAPP_COPYRIGHT="""${COPYRIGHT}""")

# Файлы для сборки
file(GLOB HEADERS   "*.h")
file(GLOB SOURCES   "*.cpp")
file(GLOB FORMS     "*.ui")
file(GLOB RESOURCES "*.qrc")

# Пути к бинарным файлам
set(BINARY_DIR "${CMAKE_BINARY_DIR}")
set(APPPATH  "bin")
set(INCPATH  "include/${CMAKE_PROJECT_NAME}")
set(RINCPATH "include")
set(DOCPATH  "share/doc/${CMAKE_PROJECT_NAME}")
set(TESTPATH "bin")
set(RPLUGINPATH "lib/${CMAKE_PROJECT_NAME}/plugins")
add_definitions(-DPLUGIN_DIR="""../${RPLUGINPATH}""")

if (UNIX)
    set(RLIBRARYPATH     "lib/${CMAKE_PROJECT_NAME}")
    set(RLIBRARYTESTPATH "lib/${CMAKE_PROJECT_NAME}")
endif (UNIX)
if (WIN32)
    set(RLIBRARYPATH     "./")
    set(RLIBRARYTESTPATH "./")
endif (WIN32)

include("${CMAKE_SOURCE_DIR}/cmake/qt.cmake")
include("${CMAKE_SOURCE_DIR}/cmake/git.cmake")
