git-svn-id: svn://db.shs.com.ru/libs@207 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-05-16 12:06:39 +00:00
parent 15048f93de
commit d81548aae7
8 changed files with 52 additions and 47 deletions

View File

@@ -1,8 +1,8 @@
macro(sdk_install _DIR _TARGET _H_FILES)
if (LIB)
if (WIN32)
if (NOT _H_FILES STREQUAL "")
if LIB)
if(WIN32)
if(NOT _H_FILES STREQUAL "")
#message("HFILES ${_H_FILES}")
install(FILES ${_H_FILES} DESTINATION ${MINGW_INCLUDE}/${_DIR})
endif()
@@ -10,13 +10,13 @@ macro(sdk_install _DIR _TARGET _H_FILES)
install(TARGETS ${_TARGET} DESTINATION ${MINGW_BIN})
get_filename_component(QTDIR ${QT_QMAKE_EXECUTABLE} PATH)
install(TARGETS ${_TARGET} DESTINATION ${QTDIR})
else ()
else()
if (NOT _H_FILES STREQUAL "")
install(FILES ${_H_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/${_DIR})
endif()
install(TARGETS ${_TARGET} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
endif ()
else ()
endif()
else()
install(TARGETS ${_TARGET} DESTINATION bin)
endif ()
endif()
endmacro()