b8222ddea934f693a27d387d76ab89f06fed4b6d
[reactos.git] / lib / 3rdparty / stlport / CMakeLists.txt
1
2 #uncomment this if you want to test c++ compilation
3 #add_subdirectory(test)
4
5 add_definitions(-D_STLP_USE_EXCEPTIONS)
6
7 list(APPEND SOURCE
8 src/allocators.cpp
9 src/bitset.cpp
10 src/codecvt.cpp
11 src/collate.cpp
12 src/complex.cpp
13 src/complex_io.cpp
14 src/complex_trig.cpp
15 src/ctype.cpp
16 src/dll_main.cpp
17 src/facets_byname.cpp
18 src/fstream.cpp
19 src/ios.cpp
20 src/iostream.cpp
21 src/istream.cpp
22 src/locale.cpp
23 src/locale_catalog.cpp
24 src/locale_impl.cpp
25 src/messages.cpp
26 src/monetary.cpp
27 src/num_get.cpp
28 src/num_get_float.cpp
29 src/num_put.cpp
30 src/num_put_float.cpp
31 src/numpunct.cpp
32 src/ostream.cpp
33 src/sstream.cpp
34 src/stdio_streambuf.cpp
35 src/string.cpp
36 src/strstream.cpp
37 src/time_facets.cpp
38 src/c_locale.c
39 src/cxa.c)
40
41 add_library(stlport ${SOURCE})
42
43 if(NOT MSVC)
44 #those are mandatory to get correctly ordered linked libraries.
45 target_link_libraries(stlport supc++ msvcrt.dll.a)
46 add_importlibs(stlport msvcrt)
47 endif()