Greetings, I am learning cmake. and I have taken the following from an old Makefile:- INC = ../include/BouncyBall.h
BouncyBall: BouncyBall.c library $(INC) ${CC} ${CFLAGS} -o BouncyBall BouncyBall.c ../lib/libOLD.a ./BouncyBall > my_BouncyBall.out - diff BouncyBall.out my_BouncyBall.out and 'translated' for cmake as the following:- ----------------------- add_executable(BouncyBall BouncyBall.c) find_library(OLD_LIBRARY OLD) target_link_libraries(BouncyBall ${OLD_LIBRARY}) COMMAND(./BouncyBall > my_BouncyBall.out - diff BouncyBall.out my_BouncyBall.out) install(TARGETS BouncyBall BouncyBall.out my_BouncyBall.out DESTINATION bin) ----------------------- but it does not work advice would be appreciated sincerely luxInteg _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake