PROJECT(Orxonox) AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES) SET (UTIL_SRC_FILES ${TINYXML_SRC_FILES} substring.cc ) IF(WIN32) ADD_LIBRARY( util ${UTIL_SRC_FILES} ) ELSE(WIN32) ADD_LIBRARY( util SHARED ${UTIL_SRC_FILES} ) ENDIF(WIN32) SET_TARGET_PROPERTIES( util PROPERTIES LINK_FLAGS "--no-undefined" ) IF(TESTING_ENABLED) ADD_SUBDIRECTORY(testing) ENDIF(TESTING_ENABLED)