From 8fc6c08aa6716d5835c8af886fa70c3df4d3e771 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 19 Sep 2015 17:14:35 +0200 Subject: [PATCH] Placeholder projects --- code/nel/tools/3d/CMakeLists.txt | 6 ++++- code/nel/tools/3d/mesh_export/CMakeLists.txt | 12 +++++++++ code/nel/tools/3d/mesh_export/main.cpp | 26 ++++++++++++++++++++ code/nel/tools/3d/mesh_utils/CMakeLists.txt | 16 ++++++++++++ code/nel/tools/3d/mesh_utils/mesh_utils.cpp | 23 +++++++++++++++++ code/nel/tools/3d/mesh_utils/mesh_utils.h | 20 +++++++++++++++ 6 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 code/nel/tools/3d/mesh_export/CMakeLists.txt create mode 100644 code/nel/tools/3d/mesh_export/main.cpp create mode 100644 code/nel/tools/3d/mesh_utils/CMakeLists.txt create mode 100644 code/nel/tools/3d/mesh_utils/mesh_utils.cpp create mode 100644 code/nel/tools/3d/mesh_utils/mesh_utils.h diff --git a/code/nel/tools/3d/CMakeLists.txt b/code/nel/tools/3d/CMakeLists.txt index cb709ffaa..37773e9ee 100644 --- a/code/nel/tools/3d/CMakeLists.txt +++ b/code/nel/tools/3d/CMakeLists.txt @@ -1,6 +1,11 @@ IF(WITH_NEL_TOOLS) IF(WITH_3D) + IF(WITH_ASSIMP) + SUBDIRS( + mesh_utils + mesh_export) + ENDIF() SUBDIRS( anim_builder animation_set_builder @@ -27,7 +32,6 @@ IF(WITH_NEL_TOOLS) zone_dump zviewer) ENDIF() - SUBDIRS( build_interface get_neighbors diff --git a/code/nel/tools/3d/mesh_export/CMakeLists.txt b/code/nel/tools/3d/mesh_export/CMakeLists.txt new file mode 100644 index 000000000..838ce49c2 --- /dev/null +++ b/code/nel/tools/3d/mesh_export/CMakeLists.txt @@ -0,0 +1,12 @@ +FILE(GLOB SRCS *.cpp) +FILE(GLOB HDRS *.h) + +SOURCE_GROUP("" FILES ${SRCS} ${HDRS}) + +ADD_EXECUTABLE(mesh_export ${SRCS} ${HDRS}) + +TARGET_LINK_LIBRARIES(mesh_export mesh_utils nel3d nelmisc) +NL_DEFAULT_PROPS(mesh_export "NeL, Tools, 3D: Mesh Export") +NL_ADD_RUNTIME_FLAGS(mesh_export) + +INSTALL(TARGETS mesh_export RUNTIME DESTINATION ${NL_BIN_PREFIX} COMPONENT tools3d) diff --git a/code/nel/tools/3d/mesh_export/main.cpp b/code/nel/tools/3d/mesh_export/main.cpp new file mode 100644 index 000000000..be527719b --- /dev/null +++ b/code/nel/tools/3d/mesh_export/main.cpp @@ -0,0 +1,26 @@ +// NeL - MMORPG Framework +// Copyright (C) 2015 Winch Gate Property Limited +// Author: Jan Boon +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +#include "../mesh_utils/mesh_utils.h" + +int main(int argc, char *argv[]) +{ + mesh_utils_placeholder(); + return 0; +} + +/* end of file */ diff --git a/code/nel/tools/3d/mesh_utils/CMakeLists.txt b/code/nel/tools/3d/mesh_utils/CMakeLists.txt new file mode 100644 index 000000000..a5a9fa952 --- /dev/null +++ b/code/nel/tools/3d/mesh_utils/CMakeLists.txt @@ -0,0 +1,16 @@ +FILE(GLOB SRCS *.cpp) +FILE(GLOB HDRS *.h) + +SOURCE_GROUP("" FILES ${SRCS} ${HDRS}) + +INCLUDE_DIRECTORIES(${assimp_INCLUDE_DIRS}) + +NL_TARGET_LIB(mesh_utils ${SRCS} ${HDRS}) + +TARGET_LINK_LIBRARIES(mesh_utils ${assimp_LIBRARIES} nelmisc nel3d) +NL_DEFAULT_PROPS(mesh_utils "NeL, Tools, 3D: Mesh Utils") +NL_ADD_RUNTIME_FLAGS(mesh_utils) + +IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC) + INSTALL(TARGETS mesh_utils LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT tools3d) +ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC) diff --git a/code/nel/tools/3d/mesh_utils/mesh_utils.cpp b/code/nel/tools/3d/mesh_utils/mesh_utils.cpp new file mode 100644 index 000000000..f3dfaef84 --- /dev/null +++ b/code/nel/tools/3d/mesh_utils/mesh_utils.cpp @@ -0,0 +1,23 @@ +// NeL - MMORPG Framework +// Copyright (C) 2015 Winch Gate Property Limited +// Author: Jan Boon +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +void mesh_utils_placeholder() +{ + +} + +/* end of file */ diff --git a/code/nel/tools/3d/mesh_utils/mesh_utils.h b/code/nel/tools/3d/mesh_utils/mesh_utils.h new file mode 100644 index 000000000..8110ef8f4 --- /dev/null +++ b/code/nel/tools/3d/mesh_utils/mesh_utils.h @@ -0,0 +1,20 @@ +// NeL - MMORPG Framework +// Copyright (C) 2015 Winch Gate Property Limited +// Author: Jan Boon +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +void mesh_utils_placeholder(); + +/* end of file */