ADD_EXECUTABLE(mussagl WIN32 MACOSX_BUNDLE ${MAIN_SOURCES} )
-SET(PYTHON_CFLAGS "-DUSE_PYTHON")
-
# For windows you need to go from library with the most dependencies
# to the library with the least dependencies -diane
TARGET_LINK_LIBRARIES(mussagl
mussa_qui
- mussa_py
mussa_core
${QT_LIBRARIES}
# Including QT_LIBS twice is for dealing with linking dependancies
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_SERIALIZATION_LIBRARY}
${BOOST_PROGRAM_OPTIONS_LIBRARY}
- ${BOOST_PYTHON_LIBRARY}
- ${PYTHON_LIBRARIES}
- ${PYTHON_LINK_LIBRARIES}
${OPENGL_gl_LIBRARY}
)
+IF(USE_PYTHON)
+ SET(PYTHON_CFLAGS "-DUSE_PYTHON")
+ TARGET_LINK_LIBRARIES(mussagl
+ mussa_py
+ ${BOOST_PYTHON_LIBRARY}
+ ${PYTHON_LIBRARIES}
+ ${PYTHON_LINK_LIBRARIES})
+ENDIF(USE_PYTHON)
+
+
GET_MUSSA_COMPILE_FLAGS(MAIN_CFLAGS)
GET_MUSSA_LINK_FLAGS(MAIN_LDFLAGS)