fix the inifile cli editor

This commit is contained in:
Enno Rehling 2021-02-14 18:51:57 +01:00
parent a59fdf87cb
commit e156a65779
8 changed files with 14 additions and 3 deletions

View File

@ -56,6 +56,7 @@ endif(TOLUA_FOUND)
enable_testing()
add_subdirectory (tolua)
add_subdirectory (tools)
add_subdirectory (storage)
add_subdirectory (clibs)
add_subdirectory (process)

View File

@ -6,7 +6,7 @@ inifile() {
cd $ROOT
if [ ! -e eressea.ini ]; then
cp conf/eressea.ini .
$BUILD/iniparser/inifile eressea.ini add lua:paths lunit:scripts
$BUILD/tools/inifile eressea.ini add lua:paths lunit:scripts
fi
}

View File

@ -1,10 +1,9 @@
#include <platform.h>
#include "base36.h"
#include "log.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#define USE_STRTOL

11
tools/CMakeLists.txt Normal file
View File

@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 2.9)
project (tools C)
add_executable(inifile inifile.c)
target_link_libraries(inifile ${IniParser_LIBRARIES})
target_include_directories (inifile PRIVATE ${IniParser_INCLUDE_DIRS})
add_executable(gethash gethash.c)
add_executable(atoi36 atoi36.c ${CMAKE_SOURCE_DIR}/src/util/base36.c)
target_include_directories(atoi36 PRIVATE ${CMAKE_SOURCE_DIR}/src/util)