xref: /reactos/sdk/lib/crt/CMakeLists.txt (revision f80d978f)
1c2c66affSColin Finck
2c2c66affSColin Finckinclude_directories(include)
38c4aff39STimo Kreuzer#include_directories(.)
4c2c66affSColin Finck
5c2c66affSColin Finckadd_definitions(-D_CRTBLD)
6c2c66affSColin Finck
78c4aff39STimo Kreuzerinclude(conio/conio.cmake)
88c4aff39STimo Kreuzerinclude(direct/direct.cmake)
98c4aff39STimo Kreuzerinclude(except/except.cmake)
108c4aff39STimo Kreuzerinclude(float/float.cmake)
118c4aff39STimo Kreuzerinclude(math/math.cmake)
128c4aff39STimo Kreuzerinclude(mbstring/mbstring.cmake)
138c4aff39STimo Kreuzerinclude(mem/mem.cmake)
148c4aff39STimo Kreuzerinclude(misc/misc.cmake)
158c4aff39STimo Kreuzerinclude(printf/printf.cmake)
168c4aff39STimo Kreuzerinclude(process/process.cmake)
178c4aff39STimo Kreuzerinclude(search/search.cmake)
188c4aff39STimo Kreuzerinclude(setjmp/setjmp.cmake)
198c4aff39STimo Kreuzerinclude(startup/startup.cmake)
208c4aff39STimo Kreuzerinclude(stdio/stdio.cmake)
218c4aff39STimo Kreuzerinclude(stdlib/stdlib.cmake)
228c4aff39STimo Kreuzerinclude(string/string.cmake)
238c4aff39STimo Kreuzerinclude(time/time.cmake)
248c4aff39STimo Kreuzerinclude(wine/wine.cmake)
258c4aff39STimo Kreuzerinclude(wstring/wstring.cmake)
26c2c66affSColin Finck
27c2c66affSColin Finckinclude(crt.cmake)
28c2c66affSColin Finckinclude(libcntpr.cmake)
29c2c66affSColin Finckinclude(msvcrtex.cmake)
30c2c66affSColin Finckinclude(oldnames.cmake)
31c2c66affSColin Finck
32c2c66affSColin Finckadd_library(user32_wsprintf
33c2c66affSColin Finck    printf/streamout.c
34c2c66affSColin Finck    printf/wstreamout.c
35c2c66affSColin Finck    printf/wsprintfA.c
36c2c66affSColin Finck    printf/wsprintfW.c
37c2c66affSColin Finck    printf/wvsprintfA.c
38c2c66affSColin Finck    printf/wvsprintfW.c
39c2c66affSColin Finck    printf/wvsnprintfA.c
40c2c66affSColin Finck    printf/wvsnprintfW.c
41c2c66affSColin Finck    string/strnlen.c
42c2c66affSColin Finck    string/wcsnlen.c
43c2c66affSColin Finck    string/mbstowcs_nt.c
44c2c66affSColin Finck    string/wcstombs_nt.c)
45c2c66affSColin Finck
46c2c66affSColin Finckadd_dependencies(user32_wsprintf psdk)
477e069ccdSVictor Perevertkintarget_compile_definitions(user32_wsprintf PRIVATE _USER32_WSPRINTF)
4864b58397STimo Kreuzer
4964b58397STimo Kreuzerif(MSVC AND ARCH STREQUAL "i386")
5064b58397STimo Kreuzer    add_asm_files(ftol2_asm
5164b58397STimo Kreuzer        math/i386/ftol2_asm.s
52*f80d978fSTimo Kreuzer        math/i386/ftoul2_legacy_asm.s
5364b58397STimo Kreuzer    )
5464b58397STimo Kreuzer    add_library(ftol2 ${ftol2_asm})
5564b58397STimo Kreuzer    set_target_properties(ftol2 PROPERTIES LINKER_LANGUAGE "C")
5664b58397STimo Kreuzer    add_dependencies(ftol2 asm)
5764b58397STimo Kreuzerendif()
58