mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-07-21 18:34:50 +00:00

Added new target for comiling objects that then used by both shared and static libraries targets. Static library on Windows named mariadbcpp-static.lib static_test is now linked against static library, as we need to test it (static library) somehow, and the name of test kinda suggested to use it. It's been added to msi and other packages. MSI target depends on static lib target. Renamed package components the way it's done in C/C. Static lib and headers are in Development, library is in SharedLibraries. Small error mistake in one class(not related to the commit, just not to be lost)
46 lines
2.4 KiB
CMake
46 lines
2.4 KiB
CMake
SET(MARIADBCPP_PUBLIC_API ${CMAKE_SOURCE_DIR}/include/conncpp.hpp)
|
|
|
|
SET(MARIADBCPP_PUBLIC_CLASSES ${CMAKE_SOURCE_DIR}/include/conncpp/Driver.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/DriverManager.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/Connection.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/Statement.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/PreparedStatement.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/ResultSet.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/DatabaseMetaData.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/ResultSetMetaData.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/CallableStatement.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/Exception.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/SQLString.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/Warning.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/ParameterMetaData.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/Savepoint.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/Types.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/jdbccompat.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/buildconf.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/CArray.hpp
|
|
)
|
|
|
|
SET(MARIADBCPP_COMPAT_STUBS ${CMAKE_SOURCE_DIR}/include/conncpp/compat/Array.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/compat/Executor.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/compat/Object.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/compat/SQLType.hpp
|
|
${CMAKE_SOURCE_DIR}/include/conncpp/compat/Struct.hpp
|
|
)
|
|
IF(WIN32)
|
|
SET(WIX_INCLUDES ${MARIADBCPP_PUBLIC_API} MARIADBCPP_PUBLIC_CLASSES {MARIADBCPP_COMPAT_STUBS} PARENT_SCOPE)
|
|
ENDIF()
|
|
|
|
INSTALL(FILES
|
|
${MARIADBCPP_PUBLIC_API}
|
|
DESTINATION ${INSTALL_INCLUDEDIR}
|
|
COMPONENT Development)
|
|
INSTALL(FILES
|
|
${MARIADBCPP_PUBLIC_CLASSES}
|
|
DESTINATION ${INSTALL_INCLUDEDIR}/conncpp
|
|
COMPONENT Development)
|
|
INSTALL(FILES
|
|
${MARIADBCPP_COMPAT_STUBS}
|
|
DESTINATION ${INSTALL_INCLUDEDIR}/conncpp/compat
|
|
COMPONENT Development)
|
|
|