Top "Add-custom-command" questions

add_custom_command is not generating a target

Perhaps this is impossible and I'm misreading the cmake 3.2 documentation, but I though creating a custom command would create a …

cmake add-custom-command
How do I run a python script every time in a CMake build?

Currently I have a need to run a Python script every time in CMake which generates a .qrc file. I …

cmake add-custom-command
CMake: execute a macro/function as the command of add_custom_command

I'm using an external library which provides a CMake function for automatic code generation, to be used in my CMakeLists. …

cmake add-custom-command
How to call a CMake function from add_custom_target/command?

Is it possible to call a CMake function out of an add_custom_target or add_custom_command? I know …

c++ cmake target add-custom-command
How to get include directories from a target for use in add_custom_target?

I'm modeling dependencies with target_link_libraries, as is done in this blog post. target_link_libraries(Foo LibraryA LibraryB ) …

cmake add-custom-command