mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 12:32:36 +00:00
Moved esmtool to apps/
This commit is contained in:
parent
5ff9344a87
commit
f87810ce7a
@ -191,6 +191,11 @@ endif (APPLE)
|
|||||||
# Apps and tools
|
# Apps and tools
|
||||||
add_subdirectory( apps/openmw )
|
add_subdirectory( apps/openmw )
|
||||||
|
|
||||||
|
option(BUILD_ESMTOOL "build ESM inspector" ON)
|
||||||
|
if (BUILD_ESMTOOL)
|
||||||
|
add_subdirectory( apps/esmtool )
|
||||||
|
endif()
|
||||||
|
|
||||||
option(BUILD_CLIENTCONSOLE "build external console for script interpreter" ON)
|
option(BUILD_CLIENTCONSOLE "build external console for script interpreter" ON)
|
||||||
if (BUILD_CLIENTCONSOLE)
|
if (BUILD_CLIENTCONSOLE)
|
||||||
add_subdirectory( apps/clientconsole )
|
add_subdirectory( apps/clientconsole )
|
||||||
|
21
apps/esmtool/CMakeLists.txt
Normal file
21
apps/esmtool/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
set(ESMTOOL
|
||||||
|
esmtool_cmd.c
|
||||||
|
esmtool_cmd.h
|
||||||
|
esmtool.cpp
|
||||||
|
)
|
||||||
|
source_group(apps\\esmtool FILES ${ESMTOOL})
|
||||||
|
|
||||||
|
# Main executable
|
||||||
|
add_executable(esmtool
|
||||||
|
${ESMTOOL}
|
||||||
|
${MISC} ${MISC_HEADER}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(esmtool
|
||||||
|
${Boost_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
#if (APPLE)
|
||||||
|
# find_library(CARBON_FRAMEWORK Carbon)
|
||||||
|
# target_link_libraries(openmw ${CARBON_FRAMEWORK})
|
||||||
|
#endif (APPLE)
|
5
apps/esmtool/Makefile
Normal file
5
apps/esmtool/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
esmtool_cmd.c: esmtool.ggo
|
||||||
|
gengetopt < esmtool.ggo
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm esmtool_cmd.c esmtool_cmd.h
|
@ -1,5 +1,5 @@
|
|||||||
#include "../esm_reader.hpp"
|
#include <components/esm/esm_reader.hpp>
|
||||||
#include "../records.hpp"
|
#include <components/esm/records.hpp>
|
||||||
|
|
||||||
#include "esmtool_cmd.h"
|
#include "esmtool_cmd.h"
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
all: esmtool
|
|
||||||
|
|
||||||
esmtool: esmtool.cpp ../esm_reader.hpp ../records.hpp esmtool_cmd.c
|
|
||||||
g++ esmtool.cpp ../../tools/stringops.cpp esmtool_cmd.c -o $@
|
|
||||||
|
|
||||||
esmtool_cmd.c: esmtool.ggo
|
|
||||||
gengetopt < esmtool.ggo
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm *_test esmtool
|
|
Loading…
x
Reference in New Issue
Block a user