including headers in cmakelists - great idea suggested by Nexii Malthus

develop
Petr Mrázek 2009-10-26 21:50:08 +00:00
parent 1ec85dd611
commit db2e98a404
1 changed files with 27 additions and 0 deletions

@ -1,5 +1,28 @@
# don't use this file directly. use the one in the root folder of the project # don't use this file directly. use the one in the root folder of the project
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
LinuxMemAccess.h
WindowsMemAccess.h
md5/md5.h
md5/md5wrapper.h
tinyxml/tinystr.h
tinyxml/tinyxml.h
)
SET(PROJECT_SRCS SET(PROJECT_SRCS
DFDataModel.cpp DFDataModel.cpp
DFMemInfo.cpp DFMemInfo.cpp
@ -16,6 +39,10 @@ tinyxml/tinyxmlerror.cpp
tinyxml/tinyxmlparser.cpp tinyxml/tinyxmlparser.cpp
) )
SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE )
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
IF(UNIX) IF(UNIX)
add_definitions(-DLINUX_BUILD) add_definitions(-DLINUX_BUILD)
ELSE(UNIX) ELSE(UNIX)