[CMake] ADD_LIBRARY syntax change 2.0.6 -> 2.2.3
David Cole
david.cole at kitware.com
Wed Dec 21 10:21:03 EST 2005
Try:
ADD_LIBRARY(moc_lib STATIC ${moc_files})
Bitter, Ingmar (NIH/CC/DRD) [E] wrote:
>Hi,
>after updating CMake from 2.0.6 to 2.2.3 if ceased to like my
>CMakeLists.txt file. The commented line was offensive, but is needed to
>create the complete project setup.
>What is the preferred syntax?
>
>SET(hpp_files
>../src/a.hpp
>../src/b.hpp
>../src/c.hpp
>)
>QT_WRAP_CPP( moc_lib moc_files hpp_files )
>#ADD_LIBRARY(moc_lib STATIC _ moc_files)
>LINK_LIBRARIES(moc_lib )
>
>-Ingmar
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
>
>
>
More information about the CMake
mailing list