Implement CMake version control
This commit is contained in:
parent
15032331ee
commit
b716d2434a
2
.gitignore
vendored
2
.gitignore
vendored
@ -59,3 +59,5 @@ Release/
|
||||
.cproject
|
||||
.project
|
||||
*.launch
|
||||
|
||||
src/config.h
|
@ -10,10 +10,8 @@ cmake_policy(VERSION 3.1)
|
||||
project(rse-texture VERSION 1.0.1 DESCRIPTION "RogueSquadron Extractor - Texture" LANGUAGES C)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
set(RSE_TEX_NAME RSE_Texture-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/src/config.h @ONLY)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
#include(CheckTypeSize)
|
||||
#include(CheckFunctionExists)
|
||||
include(CheckIncludeFile)
|
||||
include(CheckCSourceCompiles)
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
#include "options.h"
|
||||
#include "HMT_Parser.h"
|
||||
#include "RS_images.h"
|
||||
|
1
src/config.h.in
Normal file
1
src/config.h.in
Normal file
@ -0,0 +1 @@
|
||||
#define VERSION "@PROJECT_VERSION@"
|
Loading…
x
Reference in New Issue
Block a user