Improvements to CMake configuration for the binary distribution (issue #1404).

- Remove libcef_dll/CMakeLists.txt dependency on the parent CMakeLists.txt file.


git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1899 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-10-28 13:39:13 +00:00
parent b1026cc191
commit 0cbadc6e07
1 changed files with 5 additions and 9 deletions

View File

@ -5,20 +5,16 @@
add_definitions(-DUSING_CEF_SHARED)
# Append platform specific sources to a list of sources.
# Should be kept synchronized with APPEND_PLATFORM_SOURCES from macros.cmake.
macro(LIBCEF_APPEND_PLATFORM_SOURCES name_of_list)
if(OS_LINUX AND ${name_of_list}_LINUX)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND ${name_of_list}_MACOSX)
list(APPEND ${name_of_list} ${${name_of_list}_MACOSX})
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND ${name_of_list}_LINUX)
list(APPEND ${name_of_list} ${${name_of_list}_LINUX})
endif()
if(OS_POSIX AND ${name_of_list}_POSIX)
list(APPEND ${name_of_list} ${${name_of_list}_POSIX})
endif()
if(OS_WINDOWS AND ${name_of_list}_WINDOWS)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" AND ${name_of_list}_WINDOWS)
list(APPEND ${name_of_list} ${${name_of_list}_WINDOWS})
endif()
if(OS_MACOSX AND ${name_of_list}_MACOSX)
list(APPEND ${name_of_list} ${${name_of_list}_MACOSX})
endif()
endmacro()
{{