mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
57 lines
1.3 KiB
CMake
57 lines
1.3 KiB
CMake
|
|
#uncomment this if you want to test c++ compilation
|
|
#add_subdirectory(test)
|
|
|
|
set_cpp(WITH_RTTI WITH_EXCEPTIONS WITH_STL)
|
|
|
|
add_definitions(
|
|
-D_STLP_USE_EXCEPTIONS
|
|
-D_DLL -D__USE_CRTIMP
|
|
-D_BUILD_STLPORT)
|
|
|
|
list(APPEND SOURCE
|
|
src/allocators.cpp
|
|
src/bitset.cpp
|
|
src/codecvt.cpp
|
|
src/collate.cpp
|
|
src/complex.cpp
|
|
src/complex_io.cpp
|
|
src/complex_trig.cpp
|
|
src/ctype.cpp
|
|
src/dll_main.cpp
|
|
src/facets_byname.cpp
|
|
src/fstream.cpp
|
|
src/ios.cpp
|
|
src/iostream.cpp
|
|
src/istream.cpp
|
|
src/locale.cpp
|
|
src/locale_catalog.cpp
|
|
src/locale_impl.cpp
|
|
src/messages.cpp
|
|
src/monetary.cpp
|
|
src/num_get.cpp
|
|
src/num_get_float.cpp
|
|
src/num_put.cpp
|
|
src/num_put_float.cpp
|
|
src/numpunct.cpp
|
|
src/ostream.cpp
|
|
src/sstream.cpp
|
|
src/stdio_streambuf.cpp
|
|
src/string.cpp
|
|
src/strstream.cpp
|
|
src/time_facets.cpp
|
|
src/stlport_prefix.h)
|
|
|
|
add_library(stlport
|
|
${SOURCE}
|
|
src/cxa.c
|
|
src/c_locale.c)
|
|
|
|
if(USE_CLANG_CL)
|
|
add_target_compile_flags(stlport "-Wno-missing-braces -Wno-unused-local-typedef")
|
|
add_target_compile_flags(stlport "-Wno-infinite-recursion -Wno-deprecated-register")
|
|
add_target_compile_flags(stlport "-Wno-tautological-unsigned-zero-compare")
|
|
endif()
|
|
|
|
add_dependencies(stlport xdk)
|
|
add_pch(stlport src/stlport_prefix.h SOURCE)
|