> I have a folder in which there are 5 files
> folder
> ...
> Out of these from 4th and 5th iam making a library if iam
> working on windows else with the rest three iam building one
> library for the folder.
Does the follwoing work?
SET (MAIN_SRCS
a1.c
a2.c
a3.c
)
SET (ADD_SRCS
a4.c
a5.c
)
SET_SOURCE_FILES_PROPERTIES(${MAIN_SRCS} PROPERTIES COMPILE_FLAGS "whatever I
want")
SET_SOURCE_FILES_PROPERTIES(${ADD_SRCS} PROPERTIES COMPILE_FLAGS "more I want")
ADD_LIBRARY(Library ${MAIN_SRCS} ${ADD_SRCS})
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake