26 lines
511 B
CMake
26 lines
511 B
CMake
# don't use this file directly. use the one in the root folder of the project
|
|
|
|
SET(PROJECT_SRCS
|
|
DFDataModel.cpp
|
|
DFMemInfo.cpp
|
|
DFProcess.cpp
|
|
DFProcessManager.cpp
|
|
DFHackAPI.cpp
|
|
DFHackAPIc.cpp
|
|
DFTileTypes.cpp
|
|
md5/md5.cpp
|
|
md5/md5wrapper.cpp
|
|
tinyxml/tinystr.cpp
|
|
tinyxml/tinyxml.cpp
|
|
tinyxml/tinyxmlerror.cpp
|
|
tinyxml/tinyxmlparser.cpp
|
|
)
|
|
|
|
IF(UNIX)
|
|
add_definitions(-DLINUX_BUILD)
|
|
ELSE(UNIX)
|
|
SET(PROJECT_LIBS psapi)
|
|
ENDIF(UNIX)
|
|
|
|
ADD_LIBRARY(dfhack SHARED ${PROJECT_SRCS})
|
|
TARGET_LINK_LIBRARIES(dfhack ${PROJECT_LIBS}) |