From: Andreas Schuh Date: Wed, 22 May 2013 10:02:04 +0000 (+0100) Subject: Fix configuration on Windows and add src directory to include path. X-Git-Tag: accepted/tizen/5.0/unified/20181102.024438~134^2~11^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f2a78a26f9e4e1480d1b1e0573a1c9d03822ed2;p=platform%2Fupstream%2Fgflags.git Fix configuration on Windows and add src directory to include path. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c99fff..9dd3e90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,8 +89,8 @@ set (GFLAGS_SRCS ) if (WIN32) - list (APPEND PRIVATE_HDRS "src/windows_port.h") - list (APPEND GFLAGS_SRCS "src/windows_port.cc") + list (APPEND PRIVATE_HDRS "windows_port.h") + list (APPEND GFLAGS_SRCS "windows_port.cc") endif () # ---------------------------------------------------------------------------- @@ -129,6 +129,7 @@ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "lib") if (WIN32) add_definitions (-DGFLAGS_DLL_EXPORT) 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})