Hi all!

how to compile file to object?
For example in Makefile was:

someObj.o: someFile.cpp someFile.hpp
   $(CXX) -fPIC -c someFile.cpp -o someObj.o $(FLAGS) $(IDIR)

I found add_library(someObj SHARED someFile.cpp)
but it compile to ".so" file not to object.
Setting variable SET (CMAKE_CXX_COMPILE_OBJECT true)
also have no effect.

Any ideas?

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to