mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
[SDK][CMAKE] The CMake folder is part of our SDK. CORE-9111
svn path=/trunk/; revision=71361
This commit is contained in:
parent
507c4db50d
commit
915ed50c3f
25 changed files with 15 additions and 15 deletions
|
@ -53,15 +53,15 @@ string(TOLOWER ${ARCH} ARCH)
|
||||||
|
|
||||||
# Compile options
|
# Compile options
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
include(cmake/config.cmake)
|
include(sdk/cmake/config.cmake)
|
||||||
elseif(ARCH STREQUAL "amd64")
|
elseif(ARCH STREQUAL "amd64")
|
||||||
include(cmake/config-amd64.cmake)
|
include(sdk/cmake/config-amd64.cmake)
|
||||||
elseif(ARCH STREQUAL "arm")
|
elseif(ARCH STREQUAL "arm")
|
||||||
include(cmake/config-arm.cmake)
|
include(sdk/cmake/config-arm.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Compiler flags handling
|
# Compiler flags handling
|
||||||
include(cmake/compilerflags.cmake)
|
include(sdk/cmake/compilerflags.cmake)
|
||||||
|
|
||||||
add_definitions(-D__REACTOS__)
|
add_definitions(-D__REACTOS__)
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ if(NOT MSVC_IDE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Bison and Flex support
|
# Bison and Flex support
|
||||||
# include(cmake/bison-flex.cmake)
|
# include(sdk/cmake/bison-flex.cmake)
|
||||||
|
|
||||||
if(NOT CMAKE_CROSSCOMPILING)
|
if(NOT CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ if(NOT CMAKE_CROSSCOMPILING)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
if(NEW_STYLE_BUILD)
|
if(NEW_STYLE_BUILD)
|
||||||
include(cmake/host-tools.cmake)
|
include(sdk/cmake/host-tools.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Print build type
|
# Print build type
|
||||||
|
@ -207,24 +207,24 @@ else()
|
||||||
enable_language(RC)
|
enable_language(RC)
|
||||||
|
|
||||||
# Localization definitions
|
# Localization definitions
|
||||||
include(cmake/localization.cmake)
|
include(sdk/cmake/localization.cmake)
|
||||||
set(I18N_DEFS "")
|
set(I18N_DEFS "")
|
||||||
# This will set I18N_DEFS for later use
|
# This will set I18N_DEFS for later use
|
||||||
set_i18n_language(${I18N_LANG})
|
set_i18n_language(${I18N_LANG})
|
||||||
|
|
||||||
# Compiler specific definitions and macros
|
# Compiler specific definitions and macros
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
include(cmake/msvc.cmake)
|
include(sdk/cmake/msvc.cmake)
|
||||||
else()
|
else()
|
||||||
include(cmake/gcc.cmake)
|
include(sdk/cmake/gcc.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Generic macros
|
# Generic macros
|
||||||
include(cmake/CMakeMacros.cmake)
|
include(sdk/cmake/CMakeMacros.cmake)
|
||||||
|
|
||||||
# IDL macros for widl/midl
|
# IDL macros for widl/midl
|
||||||
# We're using widl now for both MSVC and GCC builds
|
# We're using widl now for both MSVC and GCC builds
|
||||||
include(cmake/widl-support.cmake)
|
include(sdk/cmake/widl-support.cmake)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
sdk/include
|
sdk/include
|
||||||
|
@ -255,11 +255,11 @@ else()
|
||||||
add_subdirectory(sdk/include/asm)
|
add_subdirectory(sdk/include/asm)
|
||||||
|
|
||||||
if(NO_ROSSYM)
|
if(NO_ROSSYM)
|
||||||
include(cmake/baseaddress_dwarf.cmake)
|
include(sdk/cmake/baseaddress_dwarf.cmake)
|
||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
include(cmake/baseaddress_msvc.cmake)
|
include(sdk/cmake/baseaddress_msvc.cmake)
|
||||||
else()
|
else()
|
||||||
include(cmake/baseaddress.cmake)
|
include(sdk/cmake/baseaddress.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For MSVC builds, this puts all debug symbols file in the same directory.
|
# For MSVC builds, this puts all debug symbols file in the same directory.
|
||||||
|
|
|
@ -4,7 +4,7 @@ STRING(REPLACE "/PreLoad.cmake" "" REACTOS_HOME_DIR ${CMAKE_CURRENT_LIST_FILE})
|
||||||
|
|
||||||
#message("/PreLoad.cmake ... ${REACTOS_HOME_DIR}")
|
#message("/PreLoad.cmake ... ${REACTOS_HOME_DIR}")
|
||||||
|
|
||||||
SET(CMAKE_MODULE_PATH "${REACTOS_HOME_DIR}/cmake" CACHE INTERNAL "")
|
SET(CMAKE_MODULE_PATH "${REACTOS_HOME_DIR}/sdk/cmake" CACHE INTERNAL "")
|
||||||
|
|
||||||
#message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")
|
#message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue