CMakeLists.txt 318 B

123456
  1. add_custom_target(SubDirSourceFail COMMAND does_not_exist)
  2. add_custom_target(SubDirSourceInAll ALL COMMAND ${CMAKE_COMMAND} -E echo "Building SubDirSourceInAll")
  3. add_test(NAME SubDirSourceTest COMMAND ${CMAKE_COMMAND} -E echo "Running SubDirSourceTest")
  4. install(CODE [[
  5. message(STATUS "Installing SubDirSource")
  6. ]])