22 lines
581 B
CMake
22 lines
581 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
cmake_policy(SET CMP0017 NEW) # need include() with .cmake
|
|
|
|
macro(piqt_library NAME _MODULES _LIBS)
|
|
_qt_project(${NAME} FALSE "PIQt" "${_MODULES}" "pip;${_LIBS}" ${ARGN})
|
|
_qt_install(${NAME} FALSE "pip" "out_HDR" "out_QM")
|
|
endmacro()
|
|
|
|
macro(piqt_application NAME _MODULES _LIBS)
|
|
_qt_project(${NAME} TRUE "PIQt" "${_MODULES}" "pip;${_LIBS}" ${ARGN})
|
|
_qt_install(${NAME} TRUE "pip" "" "out_QM")
|
|
endmacro()
|
|
|
|
|
|
include_directories(${PIP_INCLUDES})
|
|
add_subdirectory(libs)
|
|
if (UTILS)
|
|
add_subdirectory(utils)
|
|
endif()
|
|
|
|
copy_to_parent(piqt_includes)
|