mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 13:18:51 +00:00
36 lines
644 B
CMake
36 lines
644 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})
|
|
|
|
if(NOT MSVC)
|
|
add_target_compile_flags(cmlibhost "-fshort-wchar -Wno-multichar")
|
|
endif()
|
|
|
|
target_link_libraries(cmlibhost unicode)
|
|
endif()
|