-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from erikzenker/dev
Config and Version CMake File
- Loading branch information
Showing
7 changed files
with
53 additions
and
50 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,5 @@ | ||
# - Config file for the progressbar-for-a-more-civilized-age package | ||
cmake_minimum_required(VERSION 3.0.2) | ||
project(elegant-progressbars) | ||
|
||
include_directories("${elegant-progressbars_DIR}/../include") |
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,26 @@ | ||
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/../include/elegantProgressbars/version.hpp" elegantProgressbars_VERSION_MAJOR_HPP REGEX "#define ELEGANTPROGRESSBARS_VERSION_MAJOR ") | ||
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/../include/elegantProgressbars/version.hpp" elegantProgressbars_VERSION_MINOR_HPP REGEX "#define ELEGANTPROGRESSBARS_VERSION_MINOR ") | ||
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/../include/elegantProgressbars/version.hpp" elegantProgressbars_VERSION_PATCH_HPP REGEX "#define ELEGANTPROGRESSBARS_VERSION_PATCH ") | ||
|
||
string(REGEX MATCH "([0-9]+)" elegantProgressbars_VERSION_MAJOR ${elegantProgressbars_VERSION_MAJOR_HPP}) | ||
string(REGEX MATCH "([0-9]+)" elegantProgressbars_VERSION_MINOR ${elegantProgressbars_VERSION_MINOR_HPP}) | ||
string(REGEX MATCH "([0-9]+)" elegantProgressbars_VERSION_PATCH ${elegantProgressbars_VERSION_PATCH_HPP}) | ||
|
||
set(PACKAGE_VERSION "${elegantProgressbars_VERSION_MAJOR}.${elegantProgressbars_VERSION_MINOR}.${elegantProgressbars_VERSION_PATCH}") | ||
|
||
# Check whether the requested PACKAGE_FIND_VERSION is exactly the one requested | ||
if("${PACKAGE_VERSION}" EQUAL "${PACKAGE_FIND_VERSION}") | ||
set(PACKAGE_VERSION_EXACT TRUE) | ||
else() | ||
set(PACKAGE_VERSION_EXACT FALSE) | ||
endif() | ||
|
||
# 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() |
File renamed without changes.
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,5 @@ | ||
#pragma once | ||
|
||
#define ELEGANTPROGRESSBARS_VERSION_MAJOR 1 | ||
#define ELEGANTPROGRESSBARS_VERSION_MINOR 0 | ||
#define ELEGANTPROGRESSBARS_VERSION_PATCH 0 |
This file was deleted.
Oops, something went wrong.