2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D_NTOSKRNL_
|
|
|
|
-D_NTSYSTEM_
|
|
|
|
-DNASSERT)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
cminit.c
|
2014-01-12 21:37:29 +00:00
|
|
|
cmtools.c
|
2011-05-16 13:12:07 +00:00
|
|
|
hivebin.c
|
|
|
|
hivecell.c
|
|
|
|
hiveinit.c
|
|
|
|
hivesum.c
|
2014-02-09 21:43:42 +00:00
|
|
|
hivewrt.c
|
|
|
|
cmlib.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
if(CMAKE_CROSSCOMPILING)
|
|
|
|
add_library(cmlib ${SOURCE})
|
|
|
|
add_dependencies(cmlib bugcodes)
|
2014-02-09 21:43:42 +00:00
|
|
|
add_pch(cmlib cmlib.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
else()
|
|
|
|
add_definitions(
|
|
|
|
-D__NO_CTYPE_INLINES
|
|
|
|
-DCMLIB_HOST)
|
|
|
|
add_library(cmlibhost ${SOURCE})
|
|
|
|
target_link_libraries(cmlibhost unicode)
|
|
|
|
endif()
|