cmake: Allow project-wide includes for third-party components

This commit is contained in:
Martin Fleisz 2013-04-04 12:28:52 +02:00
parent 3835fa8a35
commit 0d30f6bf9e
2 changed files with 8 additions and 4 deletions

View File

@ -420,6 +420,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)
@ -440,10 +447,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)