PROJECT(Orxonox) ADD_SUBDIRECTORY(core) ADD_SUBDIRECTORY(hud) ADD_SUBDIRECTORY(objects) ADD_SUBDIRECTORY(tools) ADD_SUBDIRECTORY(particle) INCLUDE_DIRECTORIES(tools) SET( ORXONOX_SRC_FILES Orxonox.cc SpaceshipSteering.cc Main.cc GraphicsEngine.cc ) IF(WIN32) SET( OBJECTS_SRC_FILES ${OBJECTS_SRC_FILES} ${TOOLS_SRC_FILES} ) ELSE(WIN32) SET(LINK_OBJECTS_LIBRARY objects) SET(LINK_TOOLS_LIBRARY tools) ENDIF(WIN32) IF(WIN32) # ADD_LIBRARY(orxonox ${ORXONOX_SRC_FILES}) ELSE(WIN32) ADD_LIBRARY(orxonox SHARED ${ORXONOX_SRC_FILES}) ENDIF(WIN32) ADD_EXECUTABLE(../../bin/main ${ORXONOX_SRC_FILES} ${OBJECTS_SRC_FILES}) SET_TARGET_PROPERTIES(../../bin/main PROPERTIES LINK_FLAGS "--no-undefined" ) TARGET_LINK_LIBRARIES( ../../bin/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES} loader audio network core hud ${LINK_OBJECTS_LIBRARY} ${LINK_TOOLS_LIBRARY} util particle )