mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +00:00
[CMAKE]: Ignore "build" directory.
[CMAKE]: Fix build. [CMAKE]: Generate headers outside the source tree, into intermediate directories. svn path=/branches/cmake-bringup/; revision=48259
This commit is contained in:
parent
d51dc0e932
commit
b2ab6100e7
2 changed files with 5 additions and 4 deletions
|
@ -11,6 +11,7 @@ add_definitions(-DTARGET_i386)
|
|||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/tools/unicode)
|
||||
include_directories(./include)
|
||||
include_directories(./include/reactos)
|
||||
include_directories(./include/reactos/wine)
|
||||
|
||||
add_subdirectory(tools)
|
||||
|
|
|
@ -6,18 +6,18 @@ MACRO (MACRO_ADD_INTERFACES)
|
|||
GET_FILENAME_COMPONENT(FILE ${_in_FILE} NAME_WE)
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${REACTOS_SOURCE_DIR}/include/psdk/${FILE}.h
|
||||
COMMAND widl -I${REACTOS_SOURCE_DIR}/include/dxsdk -I. -I${REACTOS_SOURCE_DIR}/include -I${REACTOS_SOURCE_DIR}/include/psdk -m32 --win32 -h -H ${REACTOS_SOURCE_DIR}/include/psdk/${FILE}.h ${REACTOS_SOURCE_DIR}/include/psdk/${FILE}.idl
|
||||
OUTPUT ${REACTOS_BINARY_DIR}/include/psdk/${FILE}.h
|
||||
COMMAND widl -I${REACTOS_SOURCE_DIR}/include/dxsdk -I. -I${REACTOS_SOURCE_DIR}/include -I${REACTOS_SOURCE_DIR}/include/psdk -m32 --win32 -h -H ${REACTOS_BINARY_DIR}/include/psdk/${FILE}.h ${REACTOS_SOURCE_DIR}/include/psdk/${FILE}.idl
|
||||
DEPENDS widl
|
||||
)
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES(
|
||||
${REACTOS_SOURCE_DIR}/include/psdk/${FILE}.h
|
||||
${REACTOS_BINARY_DIR}/include/psdk/${FILE}.h
|
||||
PROPERTIES
|
||||
GENERATED TRUE
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(build_${FILE}_idl ALL DEPENDS ${REACTOS_SOURCE_DIR}/include/psdk/${FILE}.h)
|
||||
ADD_CUSTOM_TARGET(build_${FILE}_idl ALL DEPENDS ${REACTOS_BINARY_DIR}/include/psdk/${FILE}.h)
|
||||
|
||||
ENDFOREACH(_in_FILE ${ARGN})
|
||||
|
||||
|
|
Loading…
Reference in a new issue