[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:
Sir Richard 2010-07-25 19:27:03 +00:00
parent d51dc0e932
commit b2ab6100e7
2 changed files with 5 additions and 4 deletions

View file

@ -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)

View file

@ -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})