[CMake] cmake my_BouncyBall
luxInteg
lux-integ at btconnect.com
Sun Nov 7 07:08:26 EST 2010
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
More information about the CMake
mailing list