[CMake] shared lib on mac
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Mar 2 15:23:41 EST 2009
On Monday 02 March 2009, Nicolas Slythe (Intern) wrote:
> SET(TARGET_SOURCE
> ./utils/utils.cxx
> ./test/test.cxx
> ./test/test1.cxx
> )
>
> ADD_DEFINITIONS (
> -DK_NODLL
> -DK_DISABLE_UI
> )
>
> ADD_LIBRARY (
> test
> SHARED
> ${TARGET_SOURCE}
> )
I don't have a mac here, but here on my Linux machine this works.
Did you try this on a clean build tree ?
Which version of cmake ?
Makefile generator or Xcode ?
Does the -DK_NODLL maybe cause some strange things ?
Alex
More information about the CMake
mailing list