xref: /reactos/sdk/lib/crt/CMakeLists.txt (revision 5140a990)
1
2include_directories(include)
3#include_directories(.)
4
5add_definitions(-D_CRTBLD)
6
7include(conio/conio.cmake)
8include(direct/direct.cmake)
9include(except/except.cmake)
10include(float/float.cmake)
11include(math/math.cmake)
12include(mbstring/mbstring.cmake)
13include(mem/mem.cmake)
14include(misc/misc.cmake)
15include(printf/printf.cmake)
16include(process/process.cmake)
17include(search/search.cmake)
18include(setjmp/setjmp.cmake)
19include(startup/startup.cmake)
20include(stdio/stdio.cmake)
21include(stdlib/stdlib.cmake)
22include(string/string.cmake)
23include(time/time.cmake)
24include(wine/wine.cmake)
25include(wstring/wstring.cmake)
26
27include(crt.cmake)
28include(libcntpr.cmake)
29include(msvcrtex.cmake)
30include(oldnames.cmake)
31
32add_library(user32_wsprintf
33    printf/streamout.c
34    printf/wstreamout.c
35    printf/wsprintfA.c
36    printf/wsprintfW.c
37    printf/wvsprintfA.c
38    printf/wvsprintfW.c
39    printf/wvsnprintfA.c
40    printf/wvsnprintfW.c
41    string/strnlen.c
42    string/wcsnlen.c
43    string/mbstowcs_nt.c
44    string/wcstombs_nt.c)
45
46add_dependencies(user32_wsprintf psdk)
47target_compile_definitions(user32_wsprintf PRIVATE _USER32_WSPRINTF)
48
49if(MSVC AND ARCH STREQUAL "i386")
50    add_asm_files(ftol2_asm
51        math/i386/ftol2_asm.s
52        math/i386/ftoul2_legacy_asm.s
53    )
54    add_library(ftol2 ${ftol2_asm})
55    set_target_properties(ftol2 PROPERTIES LINKER_LANGUAGE "C")
56    add_dependencies(ftol2 asm)
57endif()
58