find_package (PythonInterp REQUIRED)
find_package (OpenGL REQUIRED)
-find_package (Qt4)
+find_package (Qt4 COMPONENTS QtCore QtGui QtWebKit)
+find_package (QJSON)
if (NOT WIN32)
# Always use the bundled zlib and libpng sources on Windows to make it easy
)
endif (GLUT_INCLUDE_DIR)
-if (QT4_FOUND)
+if (QT4_FOUND AND QJSON_FOUND)
+ # Include the cmake file needed to use qt4
+ include( ${QT_USE_FILE} )
add_subdirectory(gui)
-endif (QT4_FOUND)
+endif (QT4_FOUND AND QJSON_FOUND)
QT4_WRAP_UI(qapitrace_UIS_H ${qapitrace_UIS})
#add_app_icon(qapitrace_SRCS ../icons/hi*-qapitrace.png)
+link_directories(${LINK_DIRECTORIES} ${QJSON_LIBRARY_DIRS})
+include_directories(${QT_INCLUDES} ${QJSON_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/..)
-include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/..)
add_definitions(-DBUILD_DIR="${CMAKE_CURRENT_BINARY_DIR}/..")
add_executable(qapitrace ${qapitrace_SRCS} ${qapitrace_UIS_H})
-target_link_libraries(qapitrace trace ${QT_QTCORE_LIBRARIES} ${QT_QTGUI_LIBRARIES} ${QT_QTWEBKIT_LIBRARIES})
+target_link_libraries(qapitrace trace ${QJSON_LIBRARIES} ${QT_LIBRARIES} )
########### install files ###############