-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed CMakeLists.txt to generate .pc and .cmake files
- Loading branch information
1 parent
67c14cb
commit 9571c57
Showing
4 changed files
with
79 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: @XLSXIO_NAME@ | ||
Version: @XLSXIO_VER@ | ||
Description: @XLSXIO_DESC@ | ||
URL: https://github.com/brechtsanders/xlsxio | ||
#Requires: | ||
Cflags: -I${includedir} | ||
Libs: -L${libdir} @XLSXIO_LDFLAGS@ | ||
#Libs.private: |
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,33 @@ | ||
# cmake version configuration file for @XLSXIO_NAME@ | ||
GET_FILENAME_COMPONENT(XLSXIOREAD_ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
|
||
FIND_LIBRARY( | ||
@XLSXIO_LIB@_LIBRARY @XLSXIO_LIB@ | ||
PATHS ${XLSXIOREAD_ROOT}/lib | ||
PATH_SUFFIXES ${CMAKE_LIBRARY_ARCHITECTURE} | ||
NO_DEFAULT_PATH | ||
) | ||
IF(NOT @XLSXIO_LIB@_LIBRARY) | ||
MESSAGE(FATAL_ERROR "cannot find @XLSXIO_LIB@ library in ${MUPARSERX_ROOT}/lib") | ||
ENDIF() | ||
SET(@XLSXIO_LIB@_LIBRARIES ${@XLSXIO_LIB@_LIBRARY} @XLSXIO_LDFLAGS@) | ||
|
||
FIND_PATH( | ||
@XLSXIO_LIB@_INCLUDE_DIR @XLSXIO_HEADER@ | ||
PATHS ${@XLSXIO_LIB@_ROOT}/include | ||
NO_DEFAULT_PATH | ||
) | ||
IF(NOT @XLSXIO_LIB@_INCLUDE_DIR) | ||
MESSAGE(FATAL_ERROR "cannot find @XLSXIO_LIB@ includes in ${@XLSXIO_LIB@_ROOT}/include/@XLSXIO_LIB@") | ||
ENDIF() | ||
SET(@XLSXIO_LIB@_INCLUDE_DIRS ${@XLSXIO_LIB@_INCLUDE_DIR}) | ||
|
||
|
||
|
||
#set(FOOBAR_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@") | ||
|
||
## Our library dependencies (contains definitions for IMPORTED targets) | ||
#if(NOT TARGET xlsxio_read_SHARED AND NOT FooBar_BINARY_DIR) | ||
# include("${XLSXIOREAD_ROOT}/FooBarTargets.cmake") | ||
#endif() | ||
|
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,12 @@ | ||
# cmake version configuration file for @XLSXIO_NAME@ | ||
set(PACKAGE_VERSION "@XLSXIO_VER@") | ||
|
||
# check whether the requested PACKAGE_FIND_VERSION is compatible | ||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") | ||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
else() | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") | ||
set(PACKAGE_VERSION_EXACT TRUE) | ||
endif() | ||
endif() |