[CMake] Build target with source files from different dirs?
Jun Sun
jsun at junsun.net
Sat Apr 12 13:24:30 EDT 2008
I did experiement a little and found that I could do
add_library(foo subdir/src1.c)
to include source files under the subdirectory. This is less desirable
(as it make current CMakeLists.txt a little messy) but gets the job done.
Cheers.
Jun
On Fri, Apr 11, 2008 at 05:33:30PM -0700, Jun Sun wrote:
>
> Is this possible?
>
> Specifically I like to include some source files in the subdirectories
> to link into a single library.
>
> Cheers.
>
> Jun
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list