Changed: Generate version_nl.h in include/nel/misc
--HG-- branch : develophg/compatibility-develop
parent
5cb3f8426d
commit
307eb77e63
@ -1,3 +1,7 @@
|
||||
CONVERT_VERSION_NUMBER(NL_VERSION_NUM 100 ${NL_VERSION_MAJOR} ${NL_VERSION_MINOR} ${NL_VERSION_PATCH})
|
||||
|
||||
CONFIGURE_FILE(version_nl.cmake ${CMAKE_BINARY_DIR}/version_nl.h)
|
||||
|
||||
FILE(GLOB HEADERS *.h)
|
||||
|
||||
INSTALL(FILES ${HEADERS} DESTINATION include/nel/misc COMPONENT headers)
|
||||
INSTALL(FILES ${HEADERS} ${CMAKE_BINARY_DIR}/version_nl.h DESTINATION include/nel/misc COMPONENT headers)
|
||||
|
@ -0,0 +1,14 @@
|
||||
#ifndef NL_VERSION_H
|
||||
#define NL_VERSION_H
|
||||
|
||||
#define NL_VERSION "${NL_VERSION}"
|
||||
#define NL_VERSION_MAJOR ${NL_VERSION_MAJOR}
|
||||
#define NL_VERSION_MINOR ${NL_VERSION_MINOR}
|
||||
#define NL_VERSION_PATCH ${NL_VERSION_PATCH}
|
||||
#define NL_VERSION_NUM ${NL_VERSION_NUM}
|
||||
|
||||
#define NL_REVISION ${REVISION}
|
||||
|
||||
#define NL_BUILD_DATE "${BUILD_DATE}"
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue