Add cmake build files to cjose.#30
Open
tgorol wants to merge 5 commits intocisco:masterfrom
tgorol:master
Open
Add cmake build files to cjose.#30tgorol wants to merge 5 commits intocisco:masterfrom tgorol:master
tgorol wants to merge 5 commits intocisco:masterfrom
tgorol:master
Conversation
added 2 commits
September 12, 2016 09:47
| #include <stdlib.h> | ||
|
|
||
| #ifndef HAVE_RANDOM | ||
| int random(void) |
Contributor
Author
There was a problem hiding this comment.
Some platforms (Windows) don't have the random() function. Here we create our own.
|
|
||
| #cmakedefine HAVE_RANDOM | ||
|
|
||
| #cmakedefine HAVE_SSIZE_T |
Contributor
Author
There was a problem hiding this comment.
Not all platforms have ssize_t.
| set(CJOSE_MAJOR_VERSION 0) | ||
| set(CJOSE_MINOR_VERSION 4) | ||
| set(CJOSE_PATCH_VERSION 1) | ||
| set(PACKAGE_VERSION ${CJOSE_MAJOR_VERSION}.${CJOSE_MINOR_VERSION}.${CJOSE_PATCH_VERSION}) |
| endif((NOT ${PKG_NAME}_INCLUDE_DIR) OR (NOT ${PKG_NAME}_LIBRARIES)) | ||
| endfunction(GetRootDirForHomebrew PKG_NAME) | ||
|
|
||
| if(CMAKE_C_COMPILER_ID MATCHES "AppleClang") |
Contributor
Author
There was a problem hiding this comment.
Add priority to homebrew versions of openssl, jansson and check. We can always specify custom locations of those packages by passing OPENSSL_ROOT_DIR, JANSSON_ROOT_DIR and CHECK_ROOT_DIR to our cmake invocation.
Open
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CMakeLists.txt file a main build script.
I have added some extra build scripts to detect Jansson and Check libraries. They are in the CMakeModules directory.
I have created a include\cjose\config.in file. It contains some #defines around supported functions and existing types.