Add SIMPLE_INSTALL macro, update FindSQL for Windows and

DefinePlatformSpecific.cmake for Cygwin.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE
2015-12-08 09:58:35 +01:00
parent 870cc4a648
commit 03423ddd04
3 changed files with 60 additions and 22 deletions

View File

@@ -261,6 +261,37 @@ endif()
endmacro()
#===============================================================================
# Macros for simplified installation of package not following the Poco standard as CppUnit
#
# SIMPLE_INSTALL - Install the given target
# Usage: SIMPLE_INSTALL(target_name)
# INPUT:
# target_name the name of the target. e.g. CppUnit
# Example: SIMPLE_INSTALL(Foundation)
macro(SIMPLE_INSTALL target_name)
install(
DIRECTORY include
DESTINATION include
COMPONENT Devel
PATTERN ".svn" EXCLUDE
)
install(
TARGETS "${target_name}" EXPORT "${target_name}Targets"
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)
if (MSVC)
# install the targets pdb
POCO_INSTALL_PDB(${target_name})
endif()
endmacro()
# POCO_INSTALL_PDB - Install the given target's companion pdb file (if present)
# Usage: POCO_INSTALL_PDB(target_name)
# INPUT: