the python shared library ended up picking up a link to the OS X
X11R6 libraries because it was linking against the GUI code,
if we let it link mussa will require X11 to be present on the users
system which is not always true for an OS X user.
ADD_EXECUTABLE(mussagl WIN32 MACOSX_BUNDLE ${MAIN_SOURCES} )
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
SET(PYTHON_CFLAGS "-DUSE_PYTHON")
# For windows you need to go from library with the most dependencies
mussa_core
${QT_LIBRARIES}
# Including QT_LIBS twice is for dealing with linking dependancies
mussa_core
${QT_LIBRARIES}
# Including QT_LIBS twice is for dealing with linking dependancies
- # related to Qt Assistant Client.
+ # related to Qt Assistant Client on windows
${QT_LIBRARIES}
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_SERIALIZATION_LIBRARY}
${QT_LIBRARIES}
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_SERIALIZATION_LIBRARY}
${BOOST_INCLUDE_DIR}
${QT_INCLUDES})
${BOOST_INCLUDE_DIR}
${QT_INCLUDES})
-TARGET_LINK_LIBRARIES(mussa_core
- ${OPEN_gl_LIBRARY}
- ${QT_LIBRARIES})
-
SET_TARGET_PROPERTIES(
mussa_core PROPERTIES
COMPILE_FLAGS "${ALG_CFLAGS}"
SET_TARGET_PROPERTIES(
mussa_core PROPERTIES
COMPILE_FLAGS "${ALG_CFLAGS}"
FIND_PACKAGE(OpenGL)
INCLUDE(FindBoost)
FIND_PACKAGE(OpenGL)
INCLUDE(FindBoost)
+FIND_PACKAGE(Qt4)
+INCLUDE( ${QT_USE_FILE} )
INCLUDE(Platform)
SET(SOURCES
INCLUDE(Platform)
SET(SOURCES
ADD_TEST(core_test ${CMAKE_BINARY_DIR}/alg/test/unittest)
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/alg})
TARGET_LINK_LIBRARIES(unittest
ADD_TEST(core_test ${CMAKE_BINARY_DIR}/alg/test/unittest)
LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/alg})
TARGET_LINK_LIBRARIES(unittest
+ mussa_core
+ ${QT_LIBRARIES}
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_UNIT_TEST_LIBRARY}
${BOOST_SERIALIZATION_LIBRARY}
${BOOST_FILESYSTEM_LIBRARY}
${BOOST_UNIT_TEST_LIBRARY}
${BOOST_SERIALIZATION_LIBRARY}
FIND_PACKAGE(OpenGL)
FIND_PACKAGE(PythonLibs)
FIND_PACKAGE(PythonInterp)
FIND_PACKAGE(OpenGL)
FIND_PACKAGE(PythonLibs)
FIND_PACKAGE(PythonInterp)
-SET(QT_USE_QTOPENGL 1)
-SET(QT_USE_QTASSISTANT 1)
-SET(QT_USE_QTNETWORK 1)
+SET(QT_DONT_USE_QTGUI 1)
FIND_PACKAGE(Qt4)
INCLUDE( ${QT_USE_FILE} )
FIND_PACKAGE(Qt4)
INCLUDE( ${QT_USE_FILE} )
glsequence.cpp
module.cpp
mussa.cpp
glsequence.cpp
module.cpp
mussa.cpp
nway_paths.cpp
sequence.cpp
)
nway_paths.cpp
sequence.cpp
)
${BOOST_INCLUDE_DIR} )
ADD_LIBRARY(mussa_qui STATIC ${SOURCES})
${BOOST_INCLUDE_DIR} )
ADD_LIBRARY(mussa_qui STATIC ${SOURCES})
-TARGET_LINK_LIBRARIES(mussa_qui
- mussa_core)
# currently QTASSISTANT is only properly installed under windows
IF(QT_QTASSISTANT_FOUND AND WIN32)
# currently QTASSISTANT is only properly installed under windows
IF(QT_QTASSISTANT_FOUND AND WIN32)