Re: [CMake] [CMAKE] setting list with different directories ?

2011-06-01 Thread Maxime Lecourt
Problem solved. The problem with linking with the C++ lib comes from C++ lib, and has nothing to do with CMake Thanks. 2011/6/1 Hendrik Sattler > Zitat von Maxime Lecourt : > > The declarations in my_c_header.h are surrounded by >> >> #if defined(__cplusplus) >>extern "C" { >> #endif >> /

Re: [CMake] [CMAKE] setting list with different directories ?

2011-06-01 Thread Maxime Lecourt
The declarations in my_c_header.h are surrounded by #if defined(__cplusplus) extern "C" { #endif // functions and stuff declarations #if defined(__cplusplus) } #endif So i'm not sure about whether it's taken into account or not, and how to have CMake take it into account when I compile m

Re: [CMake] [CMAKE] setting list with different directories ?

2011-06-01 Thread Hendrik Sattler
Zitat von Maxime Lecourt : I'm having what is probably a newbie problem, but a problem to me. I have C source files in two different directories, that I use to build a dll, that is loaded by another C++ project. I tried to build C objects and link with C++ set_target_properties(ppc PROPERTIES L

[CMake] [CMAKE] setting list with different directories ?

2011-06-01 Thread Maxime Lecourt
Hello, I'm having what is probably a newbie problem, but a problem to me. I have C source files in two different directories, that I use to build a dll, that is loaded by another C++ project. I tried to build C objects and link with C++ set_target_properties(ppc PROPERTIES LINK_FLAGS "-Wl,--kil