[CMAKE]
[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 include_directories(BEFORE ./stlport)
8
9 list(APPEND SOURCE
10 src/allocators.cpp
11 src/bitset.cpp
12 src/codecvt.cpp
13 src/collate.cpp
14 src/complex.cpp
15 src/complex_io.cpp
16 src/complex_trig.cpp
17 src/ctype.cpp
18 src/dll_main.cpp
19 src/facets_byname.cpp
20 src/fstream.cpp
21 src/ios.cpp
22 src/iostream.cpp
23 src/istream.cpp
24 src/locale.cpp
25 src/locale_catalog.cpp
26 src/locale_impl.cpp
27 src/messages.cpp
28 src/monetary.cpp
29 src/num_get.cpp
30 src/num_get_float.cpp
31 src/num_put.cpp
32 src/num_put_float.cpp
33 src/numpunct.cpp
34 src/ostream.cpp
35 src/sstream.cpp
36 src/stdio_streambuf.cpp
37 src/string.cpp
38 src/strstream.cpp
39 src/time_facets.cpp
40 src/c_locale.c
41 src/cxa.c)
42
43 add_library(stlport ${SOURCE})
44
45 if(NOT MSVC)
46 #those are mandatory to get correctly ordered linked libraries.
47 target_link_libraries(stlport supc++ msvcrt.dll.a)
48 add_importlibs(stlport msvcrt)
49 endif()