CMake/Tests/RunCMake/ObjectLibrary/PreBuild.cmake

5 lines
118 B
CMake

add_library(A OBJECT a.c)
add_custom_command(TARGET A PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E echo "A pre-build"
)