2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(include)
|
|
|
|
|
|
|
|
add_definitions(-D_CRTBLD)
|
|
|
|
|
2011-06-05 18:42:09 +00:00
|
|
|
if(ARCH MATCHES i386)
|
|
|
|
list(APPEND CHKSTK_SOURCE
|
|
|
|
except/i386/chkstk_asm.s
|
|
|
|
except/i386/chkstk_ms.s)
|
2011-06-06 19:01:26 +00:00
|
|
|
elseif(ARCH MATCHES amd64)
|
|
|
|
list(APPEND CHKSTK_SOURCE
|
|
|
|
except/amd64/chkstk_asm.s
|
|
|
|
except/amd64/chkstk_ms.s)
|
2011-06-05 18:42:09 +00:00
|
|
|
elseif(ARCH MATCHES powerpc)
|
|
|
|
list(APPEND CHKSTK_SOURCE
|
|
|
|
except/powerpc/chkstk_asm.s)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(chkstk ${CHKSTK_SOURCE})
|
|
|
|
|
2011-05-23 15:50:03 +00:00
|
|
|
include(crt.cmake)
|
|
|
|
include(libcntpr.cmake)
|
|
|
|
include(msvcrtex.cmake)
|
|
|
|
include(oldnames.cmake)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_library(user32_wsprintf
|
|
|
|
printf/streamout.c
|
|
|
|
printf/wstreamout.c
|
|
|
|
printf/wsprintfA.c
|
|
|
|
printf/wsprintfW.c
|
|
|
|
printf/wvsprintfA.c
|
|
|
|
printf/wvsprintfW.c
|
|
|
|
printf/wvsnprintfA.c
|
|
|
|
printf/wvsnprintfW.c
|
|
|
|
string/mbstowcs_nt.c
|
|
|
|
string/wcstombs_nt.c)
|
|
|
|
|
|
|
|
set_property(TARGET user32_wsprintf PROPERTY COMPILE_DEFINITIONS _USER32_WSPRINTF)
|
2011-05-23 15:50:03 +00:00
|
|
|
|
|
|
|
add_library(getopt misc/getopt.c)
|
|
|
|
set_property(TARGET getopt PROPERTY COMPILE_DEFINITIONS _DLL __USE_CRTIMP)
|
|
|
|
add_dependencies(getopt psdk)
|