[CMake] RE: 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:18:55 EST 2005


Ups, I asked this before and got an answer, which does work, but I had
somehow lost it.
#ADD_LIBRARY(moc_lib STATIC _ ${moc_files})
Sorry for the bother.
-Ingmar

-----Original Message-----
From: Bitter, Ingmar (NIH/CC/DRD) [E] 
Sent: Wednesday, December 21, 2005 10:11 AM
To: cmake at cmake.org
Subject: ADD_LIBRARY syntax change 2.0.6 -> 2.2.3

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