Skip to content

Commit

Permalink
Adds CMake Version (Version 1.0.23).
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-buckley committed Jan 19, 2017
1 parent a7418bf commit 1813f64
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ endif()

project(azure_c_shared_utility)

set(C_SHARED_VERSION 1.0.23)

option(run_valgrind "set run_valgrind to ON if tests are to be run under valgrind/helgrind/drd. Default is OFF" OFF)

#making a nice global variable to know if we are on linux or not.
Expand Down Expand Up @@ -599,6 +601,12 @@ if(${use_installed_dependencies})

include(CMakePackageConfigHelpers)

write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}ConfigVersion.cmake"
VERSION ${C_SHARED_VERSION}
COMPATIBILITY SameMajorVersion
)

configure_file("configs/${PROJECT_NAME}Config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}Config.cmake"
COPYONLY
Expand All @@ -614,6 +622,7 @@ if(${use_installed_dependencies})
FILES
"configs/${PROJECT_NAME}Config.cmake"
"configs/${PROJECT_NAME}Functions.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION
${package_location}
)
Expand Down
2 changes: 1 addition & 1 deletion testtools/ctest
Submodule ctest updated from c7dafa to 004ffa
2 changes: 1 addition & 1 deletion testtools/testrunner
2 changes: 1 addition & 1 deletion testtools/umock-c

0 comments on commit 1813f64

Please sign in to comment.