]> git.mxchange.org Git - simgear.git/blob - CMakeLists.txt
ed5bebeef89626b26fcb8d2492bdbb989627df5f
[simgear.git] / CMakeLists.txt
1
2
3 configure_file (
4     "${PROJECT_SOURCE_DIR}/3rdparty/expat/expat_config_cmake.in"
5     "${PROJECT_BINARY_DIR}/3rdparty/expat/expat_config.h"
6 )
7
8
9 set(expat_sources 
10         asciitab.h
11         hashtable.h
12         iasciitab.h
13         latin1tab.h
14         nametab.h
15         utf8tab.h
16         xmldef.h
17         xmlparse.h
18         xmlrole.h
19         xmltok.h
20         xmltok_impl.h
21         hashtable.c
22         xmlparse.c
23         xmlrole.c
24         xmltok.c
25         internal.h
26         ascii.h
27         sg_expat.h
28         sg_expat_external.h 
29         )
30
31
32 # this code will be linked into SimGearCore shared object, so it 
33 # must be compiled with -fPIC too
34
35
36 if(SIMGEAR_SHARED AND UNIX)
37         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
38         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
39 endif()
40
41 add_library(local_expat STATIC ${expat_sources})
42