mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user