Commit 79bf953e authored by Mathieu Faverge's avatar Mathieu Faverge

Add options for timers

parent 7e39efea
......@@ -34,7 +34,8 @@ set(QT_USE_QTUITOOLS ON)
set(QT_USE_QTOPENGL ON)
include(${QT_USE_FILE})
find_package(OpenGL)
#find_package(OpenGL)
find_package(GLU)
### Optimization options
option(VITE_ENABLE_SERIALIZATION
......@@ -44,9 +45,21 @@ option(VITE_ENABLE_VBO
### Trace format options
option(VITE_ENABLE_OTF
"Enable the support of OTF file format." ON)
"Enable the support of OTF file format." OFF)
option(VITE_ENABLE_TAU
"Enable the support of TAU file format." ON)
"Enable the support of TAU file format." OFF)
# timeval, timespec, realtime clocks, etc
include(CheckStructHasMember)
check_struct_has_member("struct timespec" tv_nsec time.h HAVE_TIMESPEC_TV_NSEC)
if( NOT HAVE_TIMESPEC_TV_NSEC )
add_definitions(-D_GNU_SOURCE)
check_struct_has_member("struct timespec" tv_nsec time.h HAVE_TIMESPEC_TV_NSEC)
endif( NOT HAVE_TIMESPEC_TV_NSEC )
check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
if( HAVE_CLOCK_GETTIME )
set(EXTRA_LIBS "${EXTRA_LIBS};rt")
endif( HAVE_CLOCK_GETTIME )
# stdlib, stdio, string, getopt, etc
check_include_files(stdarg.h HAVE_STDARG_H)
......@@ -88,4 +101,5 @@ if(VITE_ENABLE_TAU)
find_package(TAU)
endif(VITE_ENABLE_TAU)
SUBDIRS(src)
add_subdirectory(src)
#add_subdirectory(plugins)
......@@ -30,8 +30,7 @@ FIND_PATH( OTF_INCLUDE_DIR otf.h
${OTF_DIR}/include
/usr/include
/usr/local/include
../externals/otf/otflib/
/usr/include/freetype2/
${CMAKE_SOURCE_DIR}/externals/otf/otflib/
)
......@@ -44,8 +43,6 @@ IF( OTF_INCLUDE_DIR )
ENDIF( OTF_LIBRARY )
ENDIF( OTF_INCLUDE_DIR )
IF( NOT OTF_FOUND )
MESSAGE("OTF installation was not found. Please provide OTF_DIR:")
MESSAGE(" - through the GUI when working with ccmake, ")
......
......@@ -328,19 +328,18 @@ ENDIF(VITE_ENABLE_TAU)
# BOOST
#############################################
IF(VITE_ENABLE_SERIALIZATION)
link_directories ( ${Boost_LIBRARY_DIRS} )
INCLUDE_DIRECTORIES ( ${Boost_INCLUDE_DIRS} )
ADD_DEFINITIONS("-DUSE_ITC -DBOOST_SERIALIZE")
SET(VITE_HDRS
link_directories ( ${Boost_LIBRARY_DIRS} )
include_directories ( ${Boost_INCLUDE_DIRS} )
add_definitions("-DUSE_ITC -DBOOST_SERIALIZE")
SET(VITE_HDRS
${VITE_HDRS}
parser/ParserSplitted.hpp
trace/IntervalOfContainer.hpp
trace/SerializerWriter.hpp
trace/SerializerDispatcher.hpp
)
SET(VITE_SRCS
${VITE_SRCS}
parser/ParserSplitted.cpp
......@@ -348,7 +347,7 @@ ADD_DEFINITIONS("-DUSE_ITC -DBOOST_SERIALIZE")
trace/SerializerWriter.cpp
trace/SerializerDispatcher.cpp
)
ENDIF(VITE_ENABLE_SERIALIZATION)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment