Moved esmtool to apps/

pull/7/head
Nicolay Korslund 14 years ago
parent 5ff9344a87
commit f87810ce7a

@ -191,6 +191,11 @@ endif (APPLE)
# Apps and tools
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)
if (BUILD_CLIENTCONSOLE)
add_subdirectory( apps/clientconsole )

@ -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)

@ -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 "../records.hpp"
#include <components/esm/esm_reader.hpp>
#include <components/esm/records.hpp>
#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…
Cancel
Save