2009-09-13 18:02:46 -06:00
|
|
|
# don't use this file directly. use the one in the root folder of the project
|
|
|
|
|
2009-10-26 15:50:08 -06:00
|
|
|
SET(PROJECT_HDRS
|
|
|
|
DFCommon.h
|
|
|
|
DFDataModel.h
|
|
|
|
DFHackAPI.h
|
|
|
|
DFHackAPIc.h
|
|
|
|
DFMemAccess.h
|
|
|
|
DFMemInfo.h
|
|
|
|
DFProcessManager.h
|
|
|
|
DFTileTypes.h
|
|
|
|
DFTypes.h
|
|
|
|
DFVector.h
|
|
|
|
integers.h
|
|
|
|
stdint_win.h
|
2009-10-28 16:40:21 -06:00
|
|
|
LinuxMemAccess-memfiles.h
|
|
|
|
LinuxMemAccess-ptrace.h
|
2009-10-26 15:50:08 -06:00
|
|
|
WindowsMemAccess.h
|
|
|
|
|
|
|
|
md5/md5.h
|
|
|
|
md5/md5wrapper.h
|
|
|
|
|
|
|
|
tinyxml/tinystr.h
|
|
|
|
tinyxml/tinyxml.h
|
|
|
|
)
|
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
SET(PROJECT_SRCS
|
|
|
|
DFDataModel.cpp
|
|
|
|
DFMemInfo.cpp
|
|
|
|
DFProcess.cpp
|
|
|
|
DFProcessManager.cpp
|
|
|
|
DFHackAPI.cpp
|
2009-10-21 18:18:49 -06:00
|
|
|
DFHackAPIc.cpp
|
2009-09-13 18:02:46 -06:00
|
|
|
DFTileTypes.cpp
|
|
|
|
md5/md5.cpp
|
|
|
|
md5/md5wrapper.cpp
|
|
|
|
tinyxml/tinystr.cpp
|
|
|
|
tinyxml/tinyxml.cpp
|
|
|
|
tinyxml/tinyxmlerror.cpp
|
|
|
|
tinyxml/tinyxmlparser.cpp
|
|
|
|
)
|
|
|
|
|
2009-10-26 15:50:08 -06:00
|
|
|
SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE )
|
|
|
|
|
|
|
|
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
|
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
IF(UNIX)
|
|
|
|
add_definitions(-DLINUX_BUILD)
|
|
|
|
ELSE(UNIX)
|
|
|
|
SET(PROJECT_LIBS psapi)
|
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
ADD_LIBRARY(dfhack SHARED ${PROJECT_SRCS})
|
2009-10-23 12:05:42 -06:00
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES( dfhack PROPERTIES DEBUG_POSTFIX "-debug" )
|
|
|
|
|
2009-09-13 18:02:46 -06:00
|
|
|
TARGET_LINK_LIBRARIES(dfhack ${PROJECT_LIBS})
|