cmake: how to define target without linking (compilation only) -


is there simple way create target object files aren't linked? need additional target tests if compiles arm. don't want create executable (it not link anyway), because project part of bigger, has own old stable make-based build system.

so need compile sources. tests done other, pc target compiled gcc.

you can use object library.

add_library(dummy object <source files>) 

Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

java - POJO with list of POJO to JSON display size and index -

objective c - Deep Linking for iOS Apps which are not installed yet? -