-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pkgconfig file and add CMake module files
This commit fixes the pkgconfig file so that opengl and fltk libraries and include directories are added to stage.pc, so that third-party packages can use stage.pc to link with stage without any other code. This commit also adds stage-config and stage-config-version cmake module files, so that find_package(stage) will work. These cmake modules also include the opengl and fltk libraries and include directories, so that third-party packages can link against stage without any other code.
- Loading branch information
1 parent
c06736b
commit 54555de
Showing
4 changed files
with
48 additions
and
2 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,11 @@ | ||
set(PACKAGE_VERSION "@VERSION@") | ||
|
||
# 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() |
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 @@ | ||
# - Config file for Stage | ||
# It defines the following variables: | ||
# STAGE_INCLUDE_DIRS - Stage Include directories | ||
# STAGE_LIBRARIES - Stage link libraries | ||
|
||
set(STAGE_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/include/@PROJECT_NAME@-@APIVERSION@" | ||
"@FLTK_INCLUDE_DIR@" | ||
"@OPENGL_INCLUDE_DIR@") | ||
list(REMOVE_DUPLICATES STAGE_INCLUDE_DIRS) | ||
set(STAGE_LIBRARIES | ||
"@CMAKE_INSTALL_PREFIX@/@PROJECT_LIB_DIR@/libstage.so" | ||
"@FLTK_LIBRARIES@" | ||
"@OPENGL_gl_LIBRARIES@") | ||
|
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