Merge pull request #1162 from mfleisz/cmthirdparty

cmake: Allow project-wide includes for third-party components
This commit is contained in:
Marc-André Moreau 2013-04-04 14:23:13 -07:00
commit 28547bece7
2 changed files with 8 additions and 4 deletions

View File

@ -421,6 +421,13 @@ endif()
# Sub-directories
if(WITH_THIRD_PARTY)
add_subdirectory(third-party)
if (NOT "${THIRD_PARTY_INCLUDES}" STREQUAL "")
include_directories(${THIRD_PARTY_INCLUDES})
endif()
endif()
add_subdirectory(include)
add_subdirectory(libfreerdp)
@ -441,10 +448,6 @@ if(WITH_SERVER)
add_subdirectory(server)
endif()
if(WITH_THIRD_PARTY)
add_subdirectory(third-party)
endif()
# Packaging
SET(CPACK_BINARY_ZIP "ON")

View File

@ -29,3 +29,4 @@ foreach(dir ${all_valid_subdirs})
endif()
endforeach(dir)
set(THIRD_PARTY_INCLUDES ${THIRD_PARTY_INCLUDES} PARENT_SCOPE)