[CMake] CPack: Packaging debug and release configurations in a single zip
Ansis Māliņš
ansis.malins at gmail.com
Thu Feb 7 13:39:20 EST 2013
How about something like this:
if(${CMAKE_BUILD_TYPE STREQUAL DebugAndRelease)
include(ExternalProject)
ExternalProject_Add(MEDEBUG
CMAKE_FLAGS -DCMAKE_BUILD_TYPE Debug)
ExternalProject_Add(MERELEASE
CMAKE_FLAGS -DCMAKE_BUILD_TYPE Release)
install(FILES ...)
#etc, etc.
return()
endif()
# the usual build code comes after
That is, add a new special build type, that, when built, makes the project
just build itself twice as an external project, package it up, and exit
before the normal build code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130207/8a0ff6d3/attachment.htm>
More information about the CMake
mailing list