mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
[CMake] llvm_process_sources: Introduce a parameter, ADDITIONAL_HEADERS.
ADDITIONAL_HEADERS is intended to add header files for IDEs as hint. For example: add_llvm_library(LLVMSupport Host.cpp ADDITIONAL_HEADERS Unix/Host.inc Windows/Host.inc ) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3767c7446e
commit
b924b8b56c
@ -38,7 +38,8 @@ endmacro(add_header_files)
|
|||||||
|
|
||||||
|
|
||||||
function(llvm_process_sources OUT_VAR)
|
function(llvm_process_sources OUT_VAR)
|
||||||
set( sources ${ARGN} )
|
cmake_parse_arguments(ARG "" "" "ADDITIONAL_HEADERS" ${ARGN})
|
||||||
|
set(sources ${ARG_UNPARSED_ARGUMENTS})
|
||||||
llvm_check_source_file_list( ${sources} )
|
llvm_check_source_file_list( ${sources} )
|
||||||
# Create file dependencies on the tablegenned files, if any. Seems
|
# Create file dependencies on the tablegenned files, if any. Seems
|
||||||
# that this is not strictly needed, as dependencies of the .cpp
|
# that this is not strictly needed, as dependencies of the .cpp
|
||||||
@ -50,9 +51,10 @@ function(llvm_process_sources OUT_VAR)
|
|||||||
endforeach(s)
|
endforeach(s)
|
||||||
if( MSVC_IDE OR XCODE )
|
if( MSVC_IDE OR XCODE )
|
||||||
# This adds .td and .h files to the Visual Studio solution:
|
# This adds .td and .h files to the Visual Studio solution:
|
||||||
# FIXME: Shall we handle *.def here?
|
|
||||||
add_td_sources(sources)
|
add_td_sources(sources)
|
||||||
add_header_files(sources)
|
add_header_files(sources)
|
||||||
|
set_source_files_properties(${ARG_ADDITIONAL_HEADERS} PROPERTIES HEADER_FILE_ONLY ON)
|
||||||
|
list(APPEND sources ${ARG_ADDITIONAL_HEADERS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set common compiler options:
|
# Set common compiler options:
|
||||||
|
@ -89,6 +89,8 @@ add_llvm_library(LLVMSupport
|
|||||||
TimeValue.cpp
|
TimeValue.cpp
|
||||||
Valgrind.cpp
|
Valgrind.cpp
|
||||||
Watchdog.cpp
|
Watchdog.cpp
|
||||||
|
|
||||||
|
ADDITIONAL_HEADERS
|
||||||
Unix/Host.inc
|
Unix/Host.inc
|
||||||
Unix/Memory.inc
|
Unix/Memory.inc
|
||||||
Unix/Mutex.inc
|
Unix/Mutex.inc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user