[CMake] need two compilation to achieve success
eial at cs.bgu.ac.il
eial at cs.bgu.ac.il
Wed Jun 3 15:43:50 EDT 2009
On Wed 03 Jun 22:34 2009 Bill Hoffman wrote:
> eial at cs.bgu.ac.il wrote:
>
> >>
> >> Where are the symbols defined that you are not finding?
> >>
> >> Also, please try make VERBOSE=1 to see the link line being used. Also,
> >> you will want to use nm and grep to find out where the symbols should be
> >> found.
> >>
> >> -Bill
> >>
> >
>
> Still lost....
>
> You don't need this:
> add_dependencies (AgathaHud AgathaUtils AgathaEngine AgathaThreads)
>
>
> Because you have this:
> #need to link to some other libraries
> TARGET_LINK_LIBRARIES(AgathaHud AgathaUtils AgathaEngine AgathaThreads)
>
> Now, what goes wrong when you do the above? If you have missing symbols
> what libraries are they defined in?
>
>
> -Bill
>
the fix above doesn't makes any difference, lets try from the start, my program depends on 3 external libs, opencv, artoolkit and poco, I need to link them to the program, I've added them to TARGET_LINK_LIBRARIES but I was told it isn't right.
More information about the CMake
mailing list