Re: [CMake] Reusing an already built object

2010-06-15 Thread Michael Hertling
On 06/13/2010 10:08 PM, Linghua Tseng wrote: > On 06/12/2010 23:30:50 Michael Hertling wrote: >> On 06/12/2010 04:10 AM, Linghua Tseng wrote: >>> ... >> Look at the following CMakeLists.txt: >> >> project(main) >> cmake_minimum_required(VERSION 2.8) >> >> add_library(gen1 STATIC src1.c) >> set(gen_

Re: [CMake] Reusing an already built object

2010-06-13 Thread Linghua Tseng
On 06/12/2010 23:30:50 Michael Hertling wrote: On 06/12/2010 04:10 AM, Linghua Tseng wrote: ... set(mylib_SRCS src1.c ${PROJECT_BINARY_DIR}/src2.c ${PROJECT_BINARY_DIR}/src3.c ${PROJECT_BINARY_DIR}/src4.c ) add_library(mylib ${PROJECT_BINARY_DIR}/src4

Re: [CMake] Reusing an already built object

2010-06-12 Thread Michael Hertling
On 06/12/2010 04:10 AM, Linghua Tseng wrote: > Continue the lastest post of this article: > http://www.cmake.org/pipermail/cmake/2009-October/032615.html > >> On Tuesday 13 October 2009, Alexander Neundorf wrote: >>> On Tuesday 13 October 2009, Naram Qashat wrote: >>> Say I have a main executable

[CMake] Reusing an already built object

2010-06-11 Thread Linghua Tseng
Continue the lastest post of this article: http://www.cmake.org/pipermail/cmake/2009-October/032615.html On Tuesday 13 October 2009, Alexander Neundorf wrote: > On Tuesday 13 October 2009, Naram Qashat wrote: > Say I have a main executable and a number of shared libraries that rely on > that exe

Re: [CMake] Reusing an already built object

2009-10-13 Thread Alexander Neundorf
On Tuesday 13 October 2009, Naram Qashat wrote: > Say I have a main executable and a number of shared libraries that rely on > that executable. Say I have a certain C++ source that is required to be > built by not only the main executable, but also every single shared library > (the source in ques

Re: [CMake] Reusing an already built object

2009-10-13 Thread Naram Qashat
Michael Wild wrote: On 13. Oct, 2009, at 0:13, Naram Qashat wrote: Say I have a main executable and a number of shared libraries that rely on that executable. Say I have a certain C++ source that is required to be built by not only the main executable, but also every single shared library (

[CMake] Reusing an already built object

2009-10-12 Thread Naram Qashat
Say I have a main executable and a number of shared libraries that rely on that executable. Say I have a certain C++ source that is required to be built by not only the main executable, but also every single shared library (the source in question is a Windows-specific file to handle memory allo