reactos/sdk/lib/cmlib/CMakeLists.txt
Victor Perevertkin 7e069ccdb2
[CMAKE] Replace custom functions to built-in ones
add_target_compile_definitions -> target_compile_definitions
add_target_compile_flags -> target_compile_options
add_target_include_directories -> target_include_directories
2020-04-16 15:59:38 +03:00

36 lines
742 B
CMake

add_definitions(
-D_NTSYSTEM_
-DNASSERT)
list(APPEND SOURCE
cminit.c
cmindex.c
cmkeydel.c
cmname.c
cmse.c
cmvalue.c
hivebin.c
hivecell.c
hiveinit.c
hivesum.c
hivewrt.c
cmlib.h)
if(CMAKE_CROSSCOMPILING)
add_library(cmlib ${SOURCE})
add_dependencies(cmlib bugcodes xdk)
add_pch(cmlib cmlib.h SOURCE)
else()
add_definitions(
-D__NO_CTYPE_INLINES
-DCMLIB_HOST)
add_library(cmlibhost ${SOURCE})
target_include_directories(cmlibhost INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
if(NOT MSVC)
target_compile_options(cmlibhost PRIVATE -fshort-wchar -Wno-multichar)
endif()
target_link_libraries(cmlibhost PRIVATE host_includes)
endif()