Permalink
Browse files

Apply cmake-init (70a376bc91291a73a976f96871a657d54a158dd5)

  • Loading branch information...
scheibel committed Jan 27, 2017
1 parent c2e4e6c commit ae8cd28e8df0056486286097c45ebf9e6f98502d
Showing with 262 additions and 127 deletions.
  1. +25 −8 .travis.yml
  2. +15 −12 CMakeLists.txt
  3. +49 −0 cmake/CheckTemplate.cmake
  4. +77 −72 cmake/GetGitRevisionDescription.cmake
  5. +17 −14 cmake/GetGitRevisionDescription.cmake.in
  6. +0 −1 codegeneration/generate.bat
  7. +0 −3 codegeneration/generate.sh
  8. +0 −1 codegeneration/update.bat
  9. +1 −1 configure
  10. +1 −1 deploy/packages/pack-glbinding.cmake
  11. +8 −1 glbinding-config.cmake
  12. +15 −3 source/CMakeLists.txt
  13. 0 { → source}/codegeneration/.gitignore
  14. +1 −1 { → source}/codegeneration/CMakeLists.txt
  15. +3 −0 source/codegeneration/generate.sh
  16. 0 { → source}/codegeneration/gl.revision
  17. 0 { → source}/codegeneration/gl.xml
  18. 0 { → source}/codegeneration/glbinding_features.h
  19. 0 { → source}/codegeneration/patch.xml
  20. BIN { → source}/codegeneration/queries.xlsx
  21. 0 { → source}/codegeneration/scripts/.gitignore
  22. 0 { → source}/codegeneration/scripts/binding.py
  23. 0 { → source}/codegeneration/scripts/classes/.gitignore
  24. 0 { → source}/codegeneration/scripts/classes/Command.py
  25. 0 { → source}/codegeneration/scripts/classes/Enum.py
  26. 0 { → source}/codegeneration/scripts/classes/Extension.py
  27. 0 { → source}/codegeneration/scripts/classes/Feature.py
  28. 0 { → source}/codegeneration/scripts/classes/Type.py
  29. 0 { → source}/codegeneration/scripts/classes/__init__.py
  30. 0 { → source}/codegeneration/scripts/context.py
  31. 0 { → source}/codegeneration/scripts/gen_bitfields.py
  32. 0 { → source}/codegeneration/scripts/gen_booleans.py
  33. 0 { → source}/codegeneration/scripts/gen_enums.py
  34. 0 { → source}/codegeneration/scripts/gen_extensions.py
  35. 0 { → source}/codegeneration/scripts/gen_features.py
  36. 0 { → source}/codegeneration/scripts/gen_functions.py
  37. 0 { → source}/codegeneration/scripts/gen_types.py
  38. 0 { → source}/codegeneration/scripts/gen_values.py
  39. 0 { → source}/codegeneration/scripts/generate.py
  40. 0 { → source}/codegeneration/scripts/templates/AllVersions_test.cpp.tpl
  41. 0 { → source}/codegeneration/scripts/templates/Binding.h.tpl
  42. 0 { → source}/codegeneration/scripts/templates/Binding_list.cpp.tpl
  43. 0 { → source}/codegeneration/scripts/templates/Binding_objects.cpp.tpl
  44. 0 { → source}/codegeneration/scripts/templates/Meta.h.tpl
  45. 0 { → source}/codegeneration/scripts/templates/Meta_BitfieldsByString.cpp.tpl
  46. 0 { → source}/codegeneration/scripts/templates/Meta_BooleansByString.cpp.tpl
  47. 0 { → source}/codegeneration/scripts/templates/Meta_EnumsByString.cpp.tpl
  48. 0 { → source}/codegeneration/scripts/templates/Meta_ExtensionsByFunctionString.cpp.tpl
  49. 0 { → source}/codegeneration/scripts/templates/Meta_ExtensionsByString.cpp.tpl
  50. 0 { → source}/codegeneration/scripts/templates/Meta_FunctionStringsByExtension.cpp.tpl
  51. 0 { → source}/codegeneration/scripts/templates/Meta_FunctionStringsByVersion.cpp.tpl
  52. 0 { → source}/codegeneration/scripts/templates/Meta_Maps.h.tpl
  53. 0 { → source}/codegeneration/scripts/templates/Meta_ReqVersionsByExtension.cpp.tpl
  54. 0 { → source}/codegeneration/scripts/templates/Meta_StringsByBitfield.cpp.tpl
  55. 0 { → source}/codegeneration/scripts/templates/Meta_StringsByBoolean.cpp.tpl
  56. 0 { → source}/codegeneration/scripts/templates/Meta_StringsByEnum.cpp.tpl
  57. 0 { → source}/codegeneration/scripts/templates/Meta_StringsByExtension.cpp.tpl
  58. 0 { → source}/codegeneration/scripts/templates/Meta_getStringByBitfield.cpp.tpl
  59. 0 { → source}/codegeneration/scripts/templates/Version_ValidVersions.cpp.tpl
  60. 0 { → source}/codegeneration/scripts/templates/bitfield.h.tpl
  61. 0 { → source}/codegeneration/scripts/templates/bitfieldF.h.tpl
  62. 0 { → source}/codegeneration/scripts/templates/boolean.h.tpl
  63. 0 { → source}/codegeneration/scripts/templates/booleanF.h.tpl
  64. 0 { → source}/codegeneration/scripts/templates/enum.h.tpl
  65. 0 { → source}/codegeneration/scripts/templates/enumF.h.tpl
  66. 0 { → source}/codegeneration/scripts/templates/extension.h.tpl
  67. 0 { → source}/codegeneration/scripts/templates/functions.cpp.tpl
  68. 0 { → source}/codegeneration/scripts/templates/functions.h.tpl
  69. 0 { → source}/codegeneration/scripts/templates/functionsF.h.tpl
  70. 0 { → source}/codegeneration/scripts/templates/gl.h.tpl
  71. 0 { → source}/codegeneration/scripts/templates/glF.h.tpl
  72. 0 { → source}/codegeneration/scripts/templates/glrevision.h.tpl
  73. 0 { → source}/codegeneration/scripts/templates/partials/general_paramSignature.tpl
  74. 0 { → source}/codegeneration/scripts/templates/partials/general_paramSignatureNs.tpl
  75. 0 { → source}/codegeneration/scripts/templates/partials/general_params.tpl
  76. 0 { → source}/codegeneration/scripts/templates/partials/general_type.tpl
  77. 0 { → source}/codegeneration/scripts/templates/partials/general_typeNs.tpl
  78. 0 { → source}/codegeneration/scripts/templates/partials/types_addable.cpp.tpl
  79. 0 { → source}/codegeneration/scripts/templates/partials/types_addable.h.tpl
  80. 0 { → source}/codegeneration/scripts/templates/partials/types_bitOperatable.cpp.tpl
  81. 0 { → source}/codegeneration/scripts/templates/partials/types_bitOperatable.h.tpl
  82. 0 { → source}/codegeneration/scripts/templates/partials/types_bitfieldStreamable.cpp.tpl
  83. 0 { → source}/codegeneration/scripts/templates/partials/types_bitfieldStreamable.h.tpl
  84. 0 { → source}/codegeneration/scripts/templates/partials/types_comparable.cpp.tpl
  85. 0 { → source}/codegeneration/scripts/templates/partials/types_comparable.h.tpl
  86. 0 { → source}/codegeneration/scripts/templates/partials/types_hashable.cpp.tpl
  87. 0 { → source}/codegeneration/scripts/templates/partials/types_hashable.h.tpl
  88. 0 { → source}/codegeneration/scripts/templates/partials/types_streamable.cpp.tpl
  89. 0 { → source}/codegeneration/scripts/templates/partials/types_streamable.h.tpl
  90. 0 { → source}/codegeneration/scripts/templates/types.cpp.tpl
  91. 0 { → source}/codegeneration/scripts/templates/types.h.tpl
  92. 0 { → source}/codegeneration/scripts/templates/typesF.h.tpl
  93. 0 { → source}/codegeneration/scripts/templates/values.h.tpl
  94. 0 { → source}/codegeneration/scripts/templates/valuesF.h.tpl
  95. 0 { → source}/codegeneration/scripts/update.py
  96. 0 { → source}/codegeneration/update.sh
  97. +1 −1 source/glbinding/CMakeLists.txt
  98. +14 −0 source/scripts/CMakeLists.txt
  99. +29 −7 source/tests/CMakeLists.txt
  100. +6 −1 source/tests/glbinding-test/CMakeLists.txt
View
@@ -3,20 +3,37 @@ language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
- CMAKE_OPTIONS="-DOPTION_BUILD_EXAMPLES=On"
matrix:
- CMAKE_CONFIGURATION=release BUILD_DIR=build
- CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
matrix:
exclude:
- os: osx
compiler: gcc
before_install:
- sudo apt-add-repository ppa:cginternals/backports-ppa -y
- sudo apt-get update -qq
- sudo apt-get install -qq cmake libgl1-mesa-dev mesa-common-dev libglew-dev libglfw3-dev qt5-default libcpplocate-dev
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-add-repository ppa:cginternals/backports-ppa -y; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update -qq; fi
- if [ $TRAVIS_OS_NAME == linux ]; then install -qq cmake libgl1-mesa-dev mesa-common-dev libglew-dev libglfw3-dev qt5-default libcpplocate-dev; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5; fi
before_script:
- mkdir build
- cd build
- cmake -DOPTION_BUILD_EXAMPLES=On ..
- ./configure
- if [ $CMAKE_CONFIGURATION == release ]; then ./configure; fi
- if [ $CMAKE_CONFIGURATION == debug ]; then ./configure debug; fi
script:
- make -j8
- make test
- cmake --build $BUILD_DIR
- cmake --build $BUILD_DIR --target test
View
@@ -36,19 +36,23 @@ set_policy(CMP0063 NEW) # ENABLE CMP0063: Honor visibility properties for all ta
# Get git revision
get_git_head_revision(GIT_REFSPEC GIT_SHA1)
string(SUBSTRING "${GIT_SHA1}" 0 12 GIT_REV)
if(NOT GIT_SHA1)
set(GIT_REV "0")
endif()
# Meta information about the project
set(META_PROJECT_NAME "glbinding")
set(META_PROJECT_DESCRIPTION "A C++ binding for the OpenGL API, generated using the gl.xml specification.")
set(META_AUTHOR_ORGANIZATION "CG Internals GmbH")
set(META_AUTHOR_DOMAIN "https://github.com/cginternals/glbinding/")
set(META_AUTHOR_MAINTAINER "opensource@cginternals.com")
set(META_VERSION_MAJOR "2")
set(META_VERSION_MINOR "1")
set(META_VERSION_PATCH "1")
set(META_VERSION_REVISION "${GIT_REV}")
set(META_VERSION "${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}")
set(META_NAME_VERSION "${META_PROJECT_NAME} v${META_VERSION} (${META_VERSION_REVISION})")
set(META_PROJECT_NAME "glbinding")
set(META_PROJECT_DESCRIPTION "A C++ binding for the OpenGL API, generated using the gl.xml specification.")
set(META_AUTHOR_ORGANIZATION "CG Internals GmbH")
set(META_AUTHOR_DOMAIN "https://github.com/cginternals/glbinding/")
set(META_AUTHOR_MAINTAINER "opensource@cginternals.com")
set(META_VERSION_MAJOR "2")
set(META_VERSION_MINOR "1")
set(META_VERSION_PATCH "1")
set(META_VERSION_REVISION "${GIT_REV}")
set(META_VERSION "${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}")
set(META_NAME_VERSION "${META_PROJECT_NAME} v${META_VERSION} (${META_VERSION_REVISION})")
set(META_CMAKE_INIT_SHA "70a376bc91291a73a976f96871a657d54a158dd5")
string(MAKE_C_IDENTIFIER ${META_PROJECT_NAME} META_PROJECT_ID)
string(TOUPPER ${META_PROJECT_ID} META_PROJECT_ID)
@@ -158,7 +162,6 @@ endif()
#
add_subdirectory(source)
add_subdirectory(codegeneration)
add_subdirectory(docs)
add_subdirectory(deploy)
View
@@ -0,0 +1,49 @@
#
# Get cmake-init latest commit SHA on master
#
file(DOWNLOAD
"https://api.github.com/repos/cginternals/cmake-init/commits/master"
"${PROJECT_BINARY_DIR}/cmake-init.github.data"
)
file(READ
"${PROJECT_BINARY_DIR}/cmake-init.github.data"
CMAKE_INIT_INFO
)
string(REGEX MATCH
"\"sha\": \"([0-9a-f]+)\","
CMAKE_INIT_SHA
${CMAKE_INIT_INFO})
string(SUBSTRING
${CMAKE_INIT_SHA}
8
40
CMAKE_INIT_SHA
)
#
# Get latest cmake-init commit on this repository
#
# APPLIED_CMAKE_INIT_SHA can be set by parent script
if(NOT APPLIED_CMAKE_INIT_SHA)
# [TODO]: Get from git commit list (see cmake_init/source/scripts/check_template.sh)
set(APPLIED_CMAKE_INIT_SHA "")
endif ()
if("${APPLIED_CMAKE_INIT_SHA}" STREQUAL "")
message(WARNING
"No cmake-init version detected, could not verify up-to-dateness. "
"Set the cmake-init version by defining a META_CMAKE_INIT_SHA for your project."
)
return()
endif()
if(${APPLIED_CMAKE_INIT_SHA} STREQUAL ${CMAKE_INIT_SHA})
message(STATUS "cmake-init template is up-to-date (${CMAKE_INIT_SHA})")
else()
message(STATUS "cmake-init template needs an update https://github.com/cginternals/cmake-init/compare/${APPLIED_CMAKE_INIT_SHA}...master")
endif()
@@ -3,11 +3,11 @@
# These functions force a re-configure on each git commit so that you can
# trust the values of the variables in your build system.
#
# get_git_head_revision(<refspecvar>; <hashvar>; [<additional arguments to git describe>; ...])
# get_git_head_revision(<refspecvar> <hashvar> [<additional arguments to git describe> ...])
#
# Returns the refspec and sha hash of the current head revision
#
# git_describe(<var>; [<additional arguments to git describe&gt; ...])
# git_describe(<var> [<additional arguments to git describe> ...])
#
# Returns the results of git describe on the source tree, and adjusting
# the output so that it tests false if an error occurs.
@@ -31,7 +31,7 @@
# http://www.boost.org/LICENSE_1_0.txt)
if(__get_git_revision_description)
return()
return()
endif()
set(__get_git_revision_description YES)
@@ -40,86 +40,91 @@ set(__get_git_revision_description YES)
get_filename_component(_gitdescmoddir ${CMAKE_CURRENT_LIST_FILE} PATH)
function(get_git_head_revision _refspecvar _hashvar)
set(GIT_PARENT_DIR "${CMAKE_SOURCE_DIR}")
if(NOT EXISTS "${GIT_PARENT_DIR}/.git")
# .git dir not found
set(${_refspecvar} "000000000000" PARENT_SCOPE)
set(${_hashvar} "000000000000" PARENT_SCOPE)
return()
endif()
if (IS_DIRECTORY "${GIT_PARENT_DIR}/.git")
# common case
set(GIT_PARENT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(GIT_DIR "${GIT_PARENT_DIR}/.git")
else()
# submodule case
file(STRINGS "${GIT_PARENT_DIR}/.git" contents LIMIT_COUNT 1)
message(STATUS "${contents}")
string(SUBSTRING "${contents}" 8 -1 SUBMODULE_GIT_DIR)
message(STATUS "${SUBMODULE_GIT_DIR}")
set(GIT_DIR "${GIT_PARENT_DIR}/${SUBMODULE_GIT_DIR}")
message(STATUS "${GIT_DIR}")
endif()
set(GIT_DATA "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/git-data")
if(NOT EXISTS "${GIT_DATA}")
file(MAKE_DIRECTORY "${GIT_DATA}")
endif()
if(NOT EXISTS "${GIT_DIR}/HEAD")
return()
endif()
set(HEAD_FILE "${GIT_DATA}/HEAD")
configure_file("${GIT_DIR}/HEAD" "${HEAD_FILE}" COPYONLY)
while(NOT EXISTS "${GIT_DIR}") # .git dir not found, search parent directories
set(GIT_PREVIOUS_PARENT "${GIT_PARENT_DIR}")
get_filename_component(GIT_PARENT_DIR ${GIT_PARENT_DIR} PATH)
if(GIT_PARENT_DIR STREQUAL GIT_PREVIOUS_PARENT)
# We have reached the root directory, we are not in git
set(${_refspecvar} "GITDIR-NOTFOUND" PARENT_SCOPE)
set(${_hashvar} "GITDIR-NOTFOUND" PARENT_SCOPE)
return()
endif()
set(GIT_DIR "${GIT_PARENT_DIR}/.git")
endwhile()
# check if this is a submodule
if(NOT IS_DIRECTORY ${GIT_DIR})
file(READ ${GIT_DIR} submodule)
string(REGEX REPLACE "gitdir: (.*)\n$" "\\1" GIT_DIR_RELATIVE ${submodule})
get_filename_component(SUBMODULE_DIR ${GIT_DIR} PATH)
get_filename_component(GIT_DIR ${SUBMODULE_DIR}/${GIT_DIR_RELATIVE} ABSOLUTE)
endif()
set(GIT_DATA "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/git-data")
if(NOT EXISTS "${GIT_DATA}")
file(MAKE_DIRECTORY "${GIT_DATA}")
endif()
configure_file("${_gitdescmoddir}/GetGitRevisionDescription.cmake.in"
"${GIT_DATA}/grabRef.cmake"
@ONLY)
include("${GIT_DATA}/grabRef.cmake")
if(NOT EXISTS "${GIT_DIR}/HEAD")
return()
endif()
set(HEAD_FILE "${GIT_DATA}/HEAD")
configure_file("${GIT_DIR}/HEAD" "${HEAD_FILE}" COPYONLY)
set(${_refspecvar} "${HEAD_REF}" PARENT_SCOPE)
set(${_hashvar} "${HEAD_HASH}" PARENT_SCOPE)
configure_file("${_gitdescmoddir}/GetGitRevisionDescription.cmake.in"
"${GIT_DATA}/grabRef.cmake"
@ONLY)
include("${GIT_DATA}/grabRef.cmake")
set(${_refspecvar} "${HEAD_REF}" PARENT_SCOPE)
set(${_hashvar} "${HEAD_HASH}" PARENT_SCOPE)
endfunction()
function(git_describe _var)
if(NOT GIT_FOUND)
find_package(Git QUIET)
endif()
get_git_head_revision(refspec hash)
if(NOT GIT_FOUND)
set(${_var} "GIT-NOTFOUND" PARENT_SCOPE)
return()
endif()
if(NOT hash)
set(${_var} "HEAD-HASH-NOTFOUND" PARENT_SCOPE)
return()
endif()
if(NOT GIT_FOUND)
find_package(Git QUIET)
endif()
get_git_head_revision(refspec hash)
if(NOT GIT_FOUND)
set(${_var} "GIT-NOTFOUND" PARENT_SCOPE)
return()
endif()
if(NOT hash)
set(${_var} "HEAD-HASH-NOTFOUND" PARENT_SCOPE)
return()
endif()
# TODO sanitize
#if((${ARGN}" MATCHES "&&") OR
# (ARGN MATCHES "||") OR
# (ARGN MATCHES "\\;"))
# message("Please report the following error to the project!")
# message(FATAL_ERROR "Looks like someone's doing something nefarious with git_describe! Passed arguments ${ARGN}")
#endif()
# TODO sanitize
#if((${ARGN}" MATCHES "&&") OR
# (ARGN MATCHES "||") OR
# (ARGN MATCHES "\\;"))
# message("Please report the following error to the project!")
# message(FATAL_ERROR "Looks like someone's doing something nefarious with git_describe! Passed arguments ${ARGN}")
#endif()
#message(STATUS "Arguments to execute_process: ${ARGN}")
#message(STATUS "Arguments to execute_process: ${ARGN}")
execute_process(COMMAND "${GIT_EXECUTABLE}" describe ${hash} ${ARGN}
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
RESULT_VARIABLE res
OUTPUT_VARIABLE out
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT res EQUAL 0)
set(out "${out}-${res}-NOTFOUND")
endif()
execute_process(COMMAND
"${GIT_EXECUTABLE}"
describe
${hash}
${ARGN}
WORKING_DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}"
RESULT_VARIABLE
res
OUTPUT_VARIABLE
out
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT res EQUAL 0)
set(out "${out}-${res}-NOTFOUND")
endif()
set(${_var} "${out}" PARENT_SCOPE)
set(${_var} "${out}" PARENT_SCOPE)
endfunction()
function(git_get_exact_tag _var)
git_describe(out --exact-match ${ARGN})
set(${_var} "${out}" PARENT_SCOPE)
git_describe(out --exact-match ${ARGN})
set(${_var} "${out}" PARENT_SCOPE)
endfunction()
@@ -1,4 +1,4 @@
#
#
# Internal file for GetGitRevisionDescription.cmake
#
# Requires CMake 2.6 or newer (uses the 'function' command)
@@ -19,20 +19,23 @@ file(READ "@HEAD_FILE@" HEAD_CONTENTS LIMIT 1024)
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
if(HEAD_CONTENTS MATCHES "ref")
# named branch
string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}")
if(EXISTS "@GIT_DIR@/${HEAD_REF}")
configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
elseif(EXISTS "@GIT_DIR@/logs/${HEAD_REF}")
configure_file("@GIT_DIR@/logs/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
set(HEAD_HASH "${HEAD_REF}")
endif()
# named branch
string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}")
if(EXISTS "@GIT_DIR@/${HEAD_REF}")
configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
else()
configure_file("@GIT_DIR@/packed-refs" "@GIT_DATA@/packed-refs" COPYONLY)
file(READ "@GIT_DATA@/packed-refs" PACKED_REFS)
if(${PACKED_REFS} MATCHES "([0-9a-z]*) ${HEAD_REF}")
set(HEAD_HASH "${CMAKE_MATCH_1}")
endif()
endif()
else()
# detached HEAD
configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY)
# detached HEAD
configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY)
endif()
if(NOT HEAD_HASH)
file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024)
string(STRIP "${HEAD_HASH}" HEAD_HASH)
endif()
file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024)
string(STRIP "${HEAD_HASH}" HEAD_HASH)
endif()

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
View
@@ -4,7 +4,7 @@
BUILD_DIR="build"
CMAKE_GENERATOR="Unix Makefiles"
BUILD_TYPE="Release"
CMAKE_OPTIONS=""
CMAKE_OPTIONS="$CMAKE_OPTIONS"
# Create default configs
if [ ! -d "./.localconfig" ]
@@ -269,7 +269,7 @@ include(CPack)
# Create target
add_custom_target(
pack-${project_name}
COMMAND ${CPACK_COMMAND} --config ${PROJECT_BINARY_DIR}/CPackConfig-${project_name}.cmake
COMMAND ${CPACK_COMMAND} --config ${PROJECT_BINARY_DIR}/CPackConfig-${project_name}.cmake -C $<CONFIG>
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
)
set_target_properties(pack-${project_name} PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1)
Oops, something went wrong.

0 comments on commit ae8cd28

Please sign in to comment.