Re: [CMake] add_library without source code

2010-07-29 Thread Michael Wild
On 29. Jul, 2010, at 10:18 , Ingolf Steinbach wrote: > 2010/7/29 Michael Wild : >> Where is the main() function? In B? > > Yes, it would be in B. > >> Perhaps it would be a good idea to not compile it into B, but use the file >> containing main() as the "required file" instead. > > This appro

Re: [CMake] add_library without source code

2010-07-29 Thread Ingolf Steinbach
2010/7/29 Michael Wild : > Where is the main() function? In B? Yes, it would be in B. > Perhaps it would be a good idea to not compile it into B, but use the file > containing main() as the "required file" instead. This approach works around the current limitation. But I'd still consider it sub

Re: [CMake] add_library without source code

2010-07-29 Thread Michael Wild
On 29. Jul, 2010, at 9:26 , Ingolf Steinbach wrote: > 2010/7/28 Michael Wild : >> So, these external libraries should be compiled using ExternalProject_Add >> (refer to the docs). [...] > > Ok. I cannot check right now but your proposed way probably solves that > problem. > >> If I didn't und

Re: [CMake] add_library without source code

2010-07-29 Thread Ingolf Steinbach
2010/7/28 Michael Wild : > So, these external libraries should be compiled using ExternalProject_Add > (refer to the docs). [...] Ok. I cannot check right now but your proposed way probably solves that problem. > If I didn't understand your scenario correctly, please provide some more > detail

Re: [CMake] add_library without source code

2010-07-28 Thread Michael Wild
On 28. Jul, 2010, at 10:57 , Ingolf Steinbach wrote: > 2010/7/28 Michael Wild : >> Are those libraries only "convenience" libraries? I.e. are you ever going to >> install them? If not, just list the source-files in the top-level >> CMakeLists.txt: >> >> >> add_executable(super-duper >> modul

Re: [CMake] add_library without source code

2010-07-28 Thread Ingolf Steinbach
2010/7/28 Michael Wild : > Are those libraries only "convenience" libraries? I.e. are you ever going to > install them? If not, just list the source-files in the top-level > CMakeLists.txt: > > > add_executable(super-duper >  modul1/modul1.c >  module2/module2.c >  ) Even if they are not going t

Re: [CMake] add_library without source code

2010-07-28 Thread Michael Wild
On 28. Jul, 2010, at 9:32 , Matthias Goesswein wrote: > Am 27.07.2010 20:01, schrieb Alexander Neundorf: >> On Tuesday 27 July 2010, Matthias Gwein wrote: >>> Hello! >>> >>> I'm using cmake 2.8.2 and I'd like to build a library of libraries and >>> i have no additional source code. >>> I tried s

Re: [CMake] add_library without source code

2010-07-28 Thread Matthias Goesswein
Am 27.07.2010 20:01, schrieb Alexander Neundorf: On Tuesday 27 July 2010, Matthias Gwein wrote: Hello! I'm using cmake 2.8.2 and I'd like to build a library of libraries and i have no additional source code. I tried something like that: add_library(mylib ) target_link_libraries(mylib lib1 lib2

Re: [CMake] add_library without source code

2010-07-27 Thread Alexander Neundorf
On Tuesday 27 July 2010, Matthias Gwein wrote: > Hello! > > I'm using cmake 2.8.2 and I'd like to build a library of libraries and > i have no additional source code. > I tried something like that: > > add_library(mylib ) > target_link_libraries(mylib lib1 lib2) > > But that doesn't work, because a

[CMake] add_library without source code

2010-07-26 Thread Matthias Gwein
Hello! I'm using cmake 2.8.2 and I'd like to build a library of libraries and i have no additional source code. I tried something like that: add_library(mylib ) target_link_libraries(mylib lib1 lib2) But that doesn't work, because add_library needs at least a source file. Is there any way t