factored out the EFFv2 saving into EFFImporter
[gemrb.git] / gemrb / core / CMakeLists.txt
blobaafa67645646bd02eef0ab237d2a496747009376
1 ADD_DEFINITIONS(-DGEM_BUILD_DLL)
3 FILE(GLOB gemrb_core_LIB_SRCS "*.cpp"
4         GameScript/Actions.cpp
5         GameScript/GSUtils.cpp
6         GameScript/GameScript.cpp
7         GameScript/Matching.cpp
8         GameScript/Objects.cpp
9         GameScript/Triggers.cpp
10         GUI/Button.cpp
11         GUI/Console.cpp
12         GUI/Control.cpp
13         GUI/EventMgr.cpp
14         GUI/GameControl.cpp
15         GUI/Label.cpp
16         GUI/MapControl.cpp
17         GUI/Progressbar.cpp
18         GUI/ScrollBar.cpp
19         GUI/Slider.cpp
20         GUI/TextArea.cpp
21         GUI/TextEdit.cpp
22         GUI/Window.cpp
23         GUI/WorldMapControl.cpp
24         Scriptable/Actor.cpp
25         Scriptable/ActorBlock.cpp
26         Scriptable/PCStatStruct.cpp
27         System/CachedFileStream.cpp
28         System/DataStream.cpp
29         System/FileStream.cpp
30         System/MemoryStream.cpp
31         System/VFS.cpp
32         System/snprintf.cpp
33         )
35 if (STATIC_LINK)
36         ADD_LIBRARY(gemrb_core STATIC ${gemrb_core_LIB_SRCS})
37 else (STATIC_LINK)
38         ADD_LIBRARY(gemrb_core SHARED ${gemrb_core_LIB_SRCS})
39         IF(WIN32)
40           INSTALL(TARGETS gemrb_core RUNTIME DESTINATION ${LIB_DIR})
41         ELSE(WIN32)
42           INSTALL(TARGETS gemrb_core LIBRARY DESTINATION ${LIB_DIR})
43         ENDIF(WIN32)
44 endif (STATIC_LINK)
46 SET_TARGET_PROPERTIES(gemrb_core PROPERTIES
47         COMPILE_DEFINITIONS
48         "PLUGINDIR=\"${PLUGIN_DIR}\";DATADIR=\"${DATA_DIR}\";SYSCONFDIR=\"${SYSCONF_DIR}\""
49         )