Add gflags library which is built with NO_THREADS definition.

This commit is contained in:
Andreas Schuh 2013-08-01 02:04:37 +01:00
parent ac3cb02be8
commit 7abcbdcbbd
2 changed files with 5 additions and 2 deletions

View file

@ -132,7 +132,10 @@ endif ()
include_directories ("${PROJECT_SOURCE_DIR}/src")
include_directories ("${PROJECT_BINARY_DIR}/include")
include_directories ("${PROJECT_BINARY_DIR}/include/${GFLAGS_NAMESPACE}")
add_library (gflags ${GFLAGS_SRCS})
add_library (gflags ${GFLAGS_SRCS})
add_library (gflags_nothreads ${GFLAGS_SRCS})
set_target_properties (gflags_nothreads PROPERTIES COMPILE_DEFINITIONS NO_THREADS)
# ----------------------------------------------------------------------------
# testing

View file

@ -11,7 +11,7 @@ set (TEMPDIR "${PROJECT_BINARY_DIR}/Testing/Temporary")
# ----------------------------------------------------------------------------
# common include directories and link libraries
include_directories ("${CMAKE_CURRENT_SOURCE_DIR}")
link_libraries (gflags)
link_libraries (gflags_nothreads)
# ----------------------------------------------------------------------------
# test executables