Commit 6f2a78a2 authored by Andreas Schuh's avatar Andreas Schuh

Fix configuration on Windows and add src directory to include path.

parent 4eb2cb22
...@@ -89,8 +89,8 @@ set (GFLAGS_SRCS ...@@ -89,8 +89,8 @@ set (GFLAGS_SRCS
) )
if (WIN32) if (WIN32)
list (APPEND PRIVATE_HDRS "src/windows_port.h") list (APPEND PRIVATE_HDRS "windows_port.h")
list (APPEND GFLAGS_SRCS "src/windows_port.cc") list (APPEND GFLAGS_SRCS "windows_port.cc")
endif () endif ()
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
...@@ -129,6 +129,7 @@ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "lib") ...@@ -129,6 +129,7 @@ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "lib")
if (WIN32) if (WIN32)
add_definitions (-DGFLAGS_DLL_EXPORT) add_definitions (-DGFLAGS_DLL_EXPORT)
endif () endif ()
include_directories ("${PROJECT_SOURCE_DIR}/src")
include_directories ("${PROJECT_BINARY_DIR}/include") include_directories ("${PROJECT_BINARY_DIR}/include")
include_directories ("${PROJECT_BINARY_DIR}/include/${GFLAGS_NAMESPACE}") include_directories ("${PROJECT_BINARY_DIR}/include/${GFLAGS_NAMESPACE}")
add_library (gflags ${GFLAGS_SRCS}) add_library (gflags ${GFLAGS_SRCS})
......
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