-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: Allow for OPTIONAL shared lib build (#197)
* Allow this project to be used with CMake FetchContent * Make sure only public headers are installed * Add support to generate packages with CPack * Set the proper targets/interfaces when used as shared library * Fixes ISSUE #49 exporting symbols
- Loading branch information
Showing
23 changed files
with
227 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# SPDX-FileCopyrightText: (C) 2021 Daniel Nicoletti <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
set(CPACK_PACKAGE_VENDOR "Daniel Nicoletti") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "QXlsx library.") | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/../README.md") | ||
set(CPACK_PACKAGE_CONTACT "Daniel Nicoletti <[email protected]>") | ||
|
||
if(UNIX) | ||
if(NOT CPACK_GENERATOR) | ||
set(CPACK_GENERATOR "DEB") | ||
endif() | ||
|
||
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) | ||
set(CPACK_STRIP_FILES 1) | ||
if(${CMAKE_VERSION} VERSION_GREATER "3.5") | ||
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) | ||
endif() | ||
endif() | ||
|
||
include(CPack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-FileCopyrightText: (C) 2021 Daniel Nicoletti <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
SET(PACKAGE_VERSION @PROJECT_VERSION@) | ||
IF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) | ||
SET(PACKAGE_VERSION_EXACT "true") | ||
ENDIF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) | ||
IF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) | ||
SET(PACKAGE_VERSION_COMPATIBLE "true") | ||
ELSE (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) | ||
SET(PACKAGE_VERSION_UNSUITABLE "true") | ||
ENDIF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION) | ||
IF (PACKAGE_VERSION_UNSUITABLE) | ||
MESSAGE("VERSION CHECK FAILED FOR ${PACKAGE_FIND_NAME}. WANTED ${PACKAGE_FIND_VERSION}, HAVE ${PACKAGE_VERSION}") | ||
ENDIF(PACKAGE_VERSION_UNSUITABLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: (C) 2021 Daniel Nicoletti <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
# - Config information for QXlsx | ||
# This file defines: | ||
# | ||
# QXlsx_INCLUDE_DIR - the QXlsx include directory | ||
# QXlsx_LIBRARY - Link these to use QXlsx | ||
|
||
SET(prefix "@CMAKE_INSTALL_PREFIX@") | ||
SET(exec_prefix "@CMAKE_INSTALL_PREFIX@") | ||
SET(QXlsx_FOUND "TRUE") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/QXlsxTargets.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
QT_BEGIN_NAMESPACE_XLSX | ||
|
||
class DateType | ||
class QXLSX_EXPORT DateType | ||
{ | ||
public: | ||
DateType(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.