[CMake] Custom Command Execution

Eric Noulard eric.noulard at gmail.com
Mon Sep 21 10:15:04 EDT 2009


2009/9/21  <th.tom at gmx.de>:
> Hi,
>
> I have the following CMakeLists.txt:
>
> ---------
> cmake_minimum_required(VERSION 2.6)
> MESSAGE (" CMAKE TEST ")
>
> ADD_CUSTOM_COMMAND (TARGET Hello PRE_BUILD
>                    COMMAND ${CMAKE_COMMAND} -E echo "Prebuild execution"
>                    COMMENT "Information string for prebuild execution"
> )
>
> ADD_EXECUTABLE ( Hello abc.cpp )
> ---------
>
> Why is the custom command not executed? Is it meat different?



More information about the CMake mailing list