Hello everyonne,

I try to build my lybrary in debug and release mode in only one command. The purpose is to create a package with the minimum files (library in debug and release mode and headers) inside it.

Actually, I do something like this:

    add_custom_command(OUTPUT build_release_debug_lib
                                        POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_LINKER_FILE:myLib> ${CMAKE_CURRENT_BINARY_DIR}/lib)

I don't know how to add a new command to specify the CMAKE_BUILD_TYPE.

Is it possible?

Thank you!

Regards,
Romain
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to