[CMake] ADD_LIBRARY syntax change 2.0.6 -> 2.2.3

Bitter, Ingmar (NIH/CC/DRD) [E] IBitter at cc.nih.gov
Wed Dec 21 10:10:54 EST 2005


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


More information about the CMake mailing list