diff --git a/CMakeLists.txt b/CMakeLists.txt index 616d9f3..717e23b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,8 +133,8 @@ 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_nothreads ${GFLAGS_SRCS}) +add_library (gflags ${GFLAGS_SRCS} ${PRIVATE_HDRS} ${PUBLIC_HDRS}) +add_library (gflags_nothreads ${GFLAGS_SRCS} ${PRIVATE_HDRS} ${PUBLIC_HDRS}) set_target_properties (gflags_nothreads PROPERTIES COMPILE_DEFINITIONS NO_THREADS) # ----------------------------------------------------------------------------