2020-08-03 01:06:55 +00:00
|
|
|
# Copyright © 2020 Vsevolod Kremianskii
|
|
|
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU 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 General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2020-08-02 15:47:59 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(reone)
|
|
|
|
|
2020-08-03 13:16:58 +00:00
|
|
|
option(BUILD_TOOLS "build tools executable" ON)
|
|
|
|
option(USE_EXTERNAL_GLM "use GLM library from external subdirectory" OFF)
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
|
|
|
find_package(Boost REQUIRED COMPONENTS filesystem program_options system)
|
|
|
|
find_package(SDL2 CONFIG REQUIRED)
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
find_package(GLEW REQUIRED)
|
|
|
|
find_package(MAD REQUIRED)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
find_package(OpenAL CONFIG REQUIRED)
|
|
|
|
else()
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(OpenAL REQUIRED openal)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT USE_EXTERNAL_GLM)
|
|
|
|
find_package(glm REQUIRED)
|
|
|
|
endif()
|
|
|
|
|
2020-08-02 15:47:59 +00:00
|
|
|
set(HEADERS
|
|
|
|
src/audio/player.h
|
|
|
|
src/audio/soundinstance.h
|
|
|
|
src/audio/stream.h
|
|
|
|
src/audio/types.h
|
2020-09-19 01:01:11 +00:00
|
|
|
src/core/debug.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/core/jobs.h
|
|
|
|
src/core/log.h
|
|
|
|
src/core/pathutil.h
|
|
|
|
src/core/random.h
|
|
|
|
src/core/streamutil.h
|
|
|
|
src/core/types.h
|
|
|
|
src/game/area.h
|
2020-09-23 01:56:19 +00:00
|
|
|
src/game/blueprint/blueprints.h
|
|
|
|
src/game/blueprint/creature.h
|
|
|
|
src/game/blueprint/door.h
|
|
|
|
src/game/blueprint/item.h
|
|
|
|
src/game/blueprint/placeable.h
|
|
|
|
src/game/blueprint/trigger.h
|
|
|
|
src/game/blueprint/waypoint.h
|
2020-09-29 15:53:32 +00:00
|
|
|
src/game/camera/camera.h
|
|
|
|
src/game/camera/firstperson.h
|
|
|
|
src/game/camera/thirdperson.h
|
2020-08-23 09:26:35 +00:00
|
|
|
src/game/characters.h
|
2020-10-02 06:08:30 +00:00
|
|
|
src/game/collisiondetect.h
|
2020-09-25 16:59:24 +00:00
|
|
|
src/game/console.h
|
2020-08-05 08:24:04 +00:00
|
|
|
src/game/dialog.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/game.h
|
2020-10-02 07:27:33 +00:00
|
|
|
src/game/gui/classselect.h
|
2020-08-23 13:42:18 +00:00
|
|
|
src/game/gui/container.h
|
2020-08-05 08:24:04 +00:00
|
|
|
src/game/gui/debug.h
|
|
|
|
src/game/gui/dialog.h
|
2020-09-26 08:43:44 +00:00
|
|
|
src/game/gui/equip.h
|
2020-08-05 08:24:04 +00:00
|
|
|
src/game/gui/hud.h
|
|
|
|
src/game/gui/mainmenu.h
|
2020-10-02 07:27:33 +00:00
|
|
|
src/game/gui/portraitselect.h
|
2020-09-28 04:56:10 +00:00
|
|
|
src/game/gui/target.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/module.h
|
|
|
|
src/game/multiplayer/area.h
|
|
|
|
src/game/multiplayer/callbacks.h
|
|
|
|
src/game/multiplayer/command.h
|
|
|
|
src/game/multiplayer/creature.h
|
|
|
|
src/game/multiplayer/door.h
|
|
|
|
src/game/multiplayer/game.h
|
2020-08-26 11:19:56 +00:00
|
|
|
src/game/multiplayer/objectfactory.h
|
2020-08-16 13:29:51 +00:00
|
|
|
src/game/multiplayer/util.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/object/creature.h
|
|
|
|
src/game/object/door.h
|
2020-08-26 11:19:56 +00:00
|
|
|
src/game/object/factory.h
|
2020-08-26 13:00:56 +00:00
|
|
|
src/game/object/item.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/object/object.h
|
|
|
|
src/game/object/placeable.h
|
2020-08-26 11:19:56 +00:00
|
|
|
src/game/object/spatial.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/object/trigger.h
|
|
|
|
src/game/object/waypoint.h
|
2020-10-02 07:27:33 +00:00
|
|
|
src/game/objectselect.h
|
2020-10-02 06:08:30 +00:00
|
|
|
src/game/pathfinder.h
|
2020-09-23 15:52:16 +00:00
|
|
|
src/game/paths.h
|
2020-10-01 12:47:56 +00:00
|
|
|
src/game/player.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/room.h
|
2020-08-10 04:52:04 +00:00
|
|
|
src/game/script/routines.h
|
2020-08-10 09:17:00 +00:00
|
|
|
src/game/script/util.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/types.h
|
2020-08-14 05:30:20 +00:00
|
|
|
src/game/util.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/gui/control/button.h
|
|
|
|
src/gui/control/control.h
|
2020-08-23 13:42:18 +00:00
|
|
|
src/gui/control/imagebutton.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/gui/control/label.h
|
|
|
|
src/gui/control/listbox.h
|
|
|
|
src/gui/control/panel.h
|
2020-08-05 08:24:04 +00:00
|
|
|
src/gui/control/scrollbar.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/gui/gui.h
|
|
|
|
src/gui/types.h
|
|
|
|
src/net/client.h
|
|
|
|
src/net/connection.h
|
2020-08-16 13:29:51 +00:00
|
|
|
src/net/command.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/net/server.h
|
|
|
|
src/net/types.h
|
|
|
|
src/program.h
|
|
|
|
src/render/aabb.h
|
|
|
|
src/render/font.h
|
2020-09-28 16:11:00 +00:00
|
|
|
src/render/framebuffer.h
|
2020-09-16 01:48:39 +00:00
|
|
|
src/render/fps.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/render/mesh/aabb.h
|
2020-09-23 15:52:16 +00:00
|
|
|
src/render/mesh/cube.h
|
2020-09-29 01:15:36 +00:00
|
|
|
src/render/mesh/quad.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/render/mesh/mesh.h
|
|
|
|
src/render/mesh/modelmesh.h
|
2020-08-27 01:40:51 +00:00
|
|
|
src/render/model/model.h
|
|
|
|
src/render/model/animation.h
|
|
|
|
src/render/model/modelnode.h
|
2020-08-26 17:01:21 +00:00
|
|
|
src/render/scene/aabbnode.h
|
2020-09-29 06:20:06 +00:00
|
|
|
src/render/scene/cameranode.h
|
2020-09-23 15:52:16 +00:00
|
|
|
src/render/scene/cubenode.h
|
2020-08-26 17:01:21 +00:00
|
|
|
src/render/scene/lightnode.h
|
2020-09-15 15:23:26 +00:00
|
|
|
src/render/scene/meshnode.h
|
2020-09-16 06:39:58 +00:00
|
|
|
src/render/scene/modelnode.h
|
2020-08-26 17:01:21 +00:00
|
|
|
src/render/scene/scenegraph.h
|
|
|
|
src/render/scene/scenenode.h
|
2020-08-23 09:26:35 +00:00
|
|
|
src/render/shaders.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/render/texture.h
|
|
|
|
src/render/types.h
|
|
|
|
src/render/walkmesh.h
|
|
|
|
src/render/window.h
|
|
|
|
src/resources/2dafile.h
|
|
|
|
src/resources/biffile.h
|
|
|
|
src/resources/binfile.h
|
|
|
|
src/resources/bwmfile.h
|
2020-08-18 09:37:24 +00:00
|
|
|
src/resources/curfile.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/resources/erffile.h
|
|
|
|
src/resources/folder.h
|
|
|
|
src/resources/gfffile.h
|
|
|
|
src/resources/keyfile.h
|
|
|
|
src/resources/lytfile.h
|
|
|
|
src/resources/mdlfile.h
|
|
|
|
src/resources/mp3file.h
|
2020-08-03 14:27:30 +00:00
|
|
|
src/resources/ncsfile.h
|
2020-08-18 09:37:24 +00:00
|
|
|
src/resources/pefile.h
|
2020-08-10 04:59:02 +00:00
|
|
|
src/resources/resources.h
|
2020-08-02 15:47:59 +00:00
|
|
|
src/resources/rimfile.h
|
|
|
|
src/resources/tgafile.h
|
|
|
|
src/resources/tlkfile.h
|
|
|
|
src/resources/tpcfile.h
|
|
|
|
src/resources/types.h
|
|
|
|
src/resources/txifile.h
|
|
|
|
src/resources/util.h
|
|
|
|
src/resources/visfile.h
|
2020-08-03 14:27:30 +00:00
|
|
|
src/resources/wavfile.h
|
|
|
|
src/script/execution.h
|
|
|
|
src/script/program.h
|
2020-08-10 04:52:04 +00:00
|
|
|
src/script/routine.h
|
2020-08-03 14:27:30 +00:00
|
|
|
src/script/types.h
|
2020-08-11 06:52:16 +00:00
|
|
|
src/script/util.h
|
2020-08-03 14:27:30 +00:00
|
|
|
src/script/variable.h)
|
2020-08-02 15:47:59 +00:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
src/audio/player.cpp
|
|
|
|
src/audio/soundinstance.cpp
|
|
|
|
src/audio/stream.cpp
|
2020-09-19 01:01:11 +00:00
|
|
|
src/core/debug.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/core/jobs.cpp
|
|
|
|
src/core/log.cpp
|
|
|
|
src/core/pathutil.cpp
|
|
|
|
src/core/random.cpp
|
|
|
|
src/core/streamutil.cpp
|
|
|
|
src/game/area.cpp
|
2020-08-14 02:46:30 +00:00
|
|
|
src/game/area_actions.cpp
|
2020-09-23 01:56:19 +00:00
|
|
|
src/game/blueprint/blueprints.cpp
|
|
|
|
src/game/blueprint/creature.cpp
|
|
|
|
src/game/blueprint/door.cpp
|
|
|
|
src/game/blueprint/item.cpp
|
|
|
|
src/game/blueprint/placeable.cpp
|
|
|
|
src/game/blueprint/trigger.cpp
|
|
|
|
src/game/blueprint/waypoint.cpp
|
2020-09-29 15:53:32 +00:00
|
|
|
src/game/camera/camera.cpp
|
|
|
|
src/game/camera/firstperson.cpp
|
|
|
|
src/game/camera/thirdperson.cpp
|
2020-08-23 09:26:35 +00:00
|
|
|
src/game/characters.cpp
|
2020-10-02 06:08:30 +00:00
|
|
|
src/game/collisiondetect.cpp
|
2020-09-25 16:59:24 +00:00
|
|
|
src/game/console.cpp
|
2020-08-05 08:24:04 +00:00
|
|
|
src/game/dialog.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/game.cpp
|
2020-10-02 07:27:33 +00:00
|
|
|
src/game/gui/classselect.cpp
|
2020-08-08 05:27:22 +00:00
|
|
|
src/game/gui/colors.cpp
|
2020-08-23 13:42:18 +00:00
|
|
|
src/game/gui/container.cpp
|
2020-08-05 08:24:04 +00:00
|
|
|
src/game/gui/debug.cpp
|
|
|
|
src/game/gui/dialog.cpp
|
2020-09-26 08:43:44 +00:00
|
|
|
src/game/gui/equip.cpp
|
2020-08-05 08:24:04 +00:00
|
|
|
src/game/gui/hud.cpp
|
|
|
|
src/game/gui/mainmenu.cpp
|
2020-10-02 07:27:33 +00:00
|
|
|
src/game/gui/portraitselect.cpp
|
2020-09-28 04:56:10 +00:00
|
|
|
src/game/gui/target.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/module.cpp
|
|
|
|
src/game/multiplayer/area.cpp
|
|
|
|
src/game/multiplayer/command.cpp
|
|
|
|
src/game/multiplayer/creature.cpp
|
|
|
|
src/game/multiplayer/door.cpp
|
|
|
|
src/game/multiplayer/game.cpp
|
2020-08-26 11:19:56 +00:00
|
|
|
src/game/multiplayer/objectfactory.cpp
|
2020-08-16 13:29:51 +00:00
|
|
|
src/game/multiplayer/util.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/object/creature.cpp
|
|
|
|
src/game/object/door.cpp
|
2020-08-26 11:19:56 +00:00
|
|
|
src/game/object/factory.cpp
|
2020-08-26 13:00:56 +00:00
|
|
|
src/game/object/item.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/object/object.cpp
|
|
|
|
src/game/object/placeable.cpp
|
2020-08-26 11:19:56 +00:00
|
|
|
src/game/object/spatial.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/object/trigger.cpp
|
|
|
|
src/game/object/waypoint.cpp
|
2020-10-02 07:27:33 +00:00
|
|
|
src/game/objectselect.cpp
|
2020-10-02 06:08:30 +00:00
|
|
|
src/game/pathfinder.cpp
|
2020-09-23 15:52:16 +00:00
|
|
|
src/game/paths.cpp
|
2020-10-01 12:47:56 +00:00
|
|
|
src/game/player.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/game/room.cpp
|
2020-08-10 04:52:04 +00:00
|
|
|
src/game/script/routines.cpp
|
|
|
|
src/game/script/routines_common.cpp
|
|
|
|
src/game/script/routines_kotor.cpp
|
|
|
|
src/game/script/routines_tsl.cpp
|
2020-08-10 09:17:00 +00:00
|
|
|
src/game/script/util.cpp
|
2020-08-14 05:30:20 +00:00
|
|
|
src/game/util.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/gui/control/button.cpp
|
|
|
|
src/gui/control/control.cpp
|
2020-08-23 13:42:18 +00:00
|
|
|
src/gui/control/imagebutton.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/gui/control/label.cpp
|
|
|
|
src/gui/control/listbox.cpp
|
|
|
|
src/gui/control/panel.cpp
|
2020-08-05 08:24:04 +00:00
|
|
|
src/gui/control/scrollbar.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/gui/gui.cpp
|
|
|
|
src/main.cpp
|
|
|
|
src/net/client.cpp
|
|
|
|
src/net/connection.cpp
|
2020-08-16 13:29:51 +00:00
|
|
|
src/net/command.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/net/server.cpp
|
|
|
|
src/program.cpp
|
|
|
|
src/render/aabb.cpp
|
|
|
|
src/render/font.cpp
|
2020-09-28 16:11:00 +00:00
|
|
|
src/render/framebuffer.cpp
|
2020-09-16 01:48:39 +00:00
|
|
|
src/render/fps.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/render/mesh/aabb.cpp
|
2020-09-23 15:52:16 +00:00
|
|
|
src/render/mesh/cube.cpp
|
2020-09-29 01:15:36 +00:00
|
|
|
src/render/mesh/quad.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/render/mesh/mesh.cpp
|
|
|
|
src/render/mesh/modelmesh.cpp
|
2020-08-27 01:40:51 +00:00
|
|
|
src/render/model/model.cpp
|
|
|
|
src/render/model/animation.cpp
|
|
|
|
src/render/model/modelnode.cpp
|
2020-08-26 17:01:21 +00:00
|
|
|
src/render/scene/aabbnode.cpp
|
2020-09-29 06:20:06 +00:00
|
|
|
src/render/scene/cameranode.cpp
|
2020-09-23 15:52:16 +00:00
|
|
|
src/render/scene/cubenode.cpp
|
2020-08-26 17:01:21 +00:00
|
|
|
src/render/scene/lightnode.cpp
|
2020-09-15 15:23:26 +00:00
|
|
|
src/render/scene/meshnode.cpp
|
2020-09-16 06:39:58 +00:00
|
|
|
src/render/scene/modelnode.cpp
|
2020-08-26 17:01:21 +00:00
|
|
|
src/render/scene/scenegraph.cpp
|
|
|
|
src/render/scene/scenenode.cpp
|
2020-08-23 09:26:35 +00:00
|
|
|
src/render/shaders.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/render/texture.cpp
|
|
|
|
src/render/walkmesh.cpp
|
|
|
|
src/render/window.cpp
|
|
|
|
src/resources/2dafile.cpp
|
|
|
|
src/resources/biffile.cpp
|
|
|
|
src/resources/binfile.cpp
|
|
|
|
src/resources/bwmfile.cpp
|
2020-08-18 09:37:24 +00:00
|
|
|
src/resources/curfile.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/resources/erffile.cpp
|
|
|
|
src/resources/folder.cpp
|
|
|
|
src/resources/gfffile.cpp
|
|
|
|
src/resources/keyfile.cpp
|
|
|
|
src/resources/lytfile.cpp
|
|
|
|
src/resources/mdlfile.cpp
|
|
|
|
src/resources/mp3file.cpp
|
2020-08-03 14:27:30 +00:00
|
|
|
src/resources/ncsfile.cpp
|
2020-08-18 09:37:24 +00:00
|
|
|
src/resources/pefile.cpp
|
2020-08-10 04:59:02 +00:00
|
|
|
src/resources/resources.cpp
|
2020-08-02 15:47:59 +00:00
|
|
|
src/resources/rimfile.cpp
|
|
|
|
src/resources/tgafile.cpp
|
|
|
|
src/resources/tlkfile.cpp
|
|
|
|
src/resources/tpcfile.cpp
|
|
|
|
src/resources/txifile.cpp
|
|
|
|
src/resources/util.cpp
|
|
|
|
src/resources/visfile.cpp
|
2020-08-03 14:27:30 +00:00
|
|
|
src/resources/wavfile.cpp
|
|
|
|
src/script/execution.cpp
|
|
|
|
src/script/program.cpp
|
2020-08-10 04:52:04 +00:00
|
|
|
src/script/routine.cpp
|
2020-08-11 06:52:16 +00:00
|
|
|
src/script/util.cpp
|
2020-08-03 14:27:30 +00:00
|
|
|
src/script/variable.cpp)
|
2020-08-02 15:47:59 +00:00
|
|
|
|
|
|
|
add_executable(reone ${HEADERS} ${SOURCES})
|
|
|
|
|
|
|
|
target_compile_definitions(reone PRIVATE BOOST_BIND_GLOBAL_PLACEHOLDERS)
|
|
|
|
target_include_directories(reone SYSTEM PRIVATE ${Boost_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS} ${MAD_INCLUDE_DIR})
|
2020-08-03 00:38:41 +00:00
|
|
|
target_link_libraries(reone PRIVATE ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY} GLEW::GLEW ${OPENGL_LIBRARIES} ${MAD_LIBRARY})
|
2020-08-02 15:47:59 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(reone PRIVATE SDL2::SDL2 OpenAL::OpenAL)
|
|
|
|
else()
|
|
|
|
target_link_libraries(reone PRIVATE ${SDL2_LIBRARIES} ${OpenAL_LIBRARIES} Threads::Threads)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(USE_EXTERNAL_GLM)
|
|
|
|
target_include_directories(reone PRIVATE ${CMAKE_SOURCE_DIR}/external/glm)
|
|
|
|
endif()
|
2020-08-03 13:16:58 +00:00
|
|
|
|
|
|
|
if(BUILD_TOOLS)
|
|
|
|
set(TOOLS_HEADERS
|
2020-09-19 01:10:46 +00:00
|
|
|
src/core/debug.h
|
2020-08-03 13:16:58 +00:00
|
|
|
src/core/log.h
|
|
|
|
src/core/pathutil.h
|
|
|
|
src/core/types.h
|
|
|
|
src/resources/2dafile.h
|
|
|
|
src/resources/biffile.h
|
|
|
|
src/resources/binfile.h
|
|
|
|
src/resources/erffile.h
|
|
|
|
src/resources/gfffile.h
|
|
|
|
src/resources/keyfile.h
|
|
|
|
src/resources/rimfile.h
|
2020-08-14 04:21:01 +00:00
|
|
|
src/resources/tlkfile.h
|
2020-08-03 13:16:58 +00:00
|
|
|
src/resources/util.h
|
|
|
|
tools/program.h
|
|
|
|
tools/tools.h)
|
|
|
|
|
|
|
|
set(TOOLS_SOURCES
|
2020-09-19 01:10:46 +00:00
|
|
|
src/core/debug.cpp
|
2020-08-03 13:16:58 +00:00
|
|
|
src/core/log.cpp
|
|
|
|
src/core/pathutil.cpp
|
|
|
|
src/resources/2dafile.cpp
|
|
|
|
src/resources/biffile.cpp
|
|
|
|
src/resources/binfile.cpp
|
|
|
|
src/resources/erffile.cpp
|
|
|
|
src/resources/gfffile.cpp
|
|
|
|
src/resources/keyfile.cpp
|
|
|
|
src/resources/rimfile.cpp
|
2020-08-14 04:21:01 +00:00
|
|
|
src/resources/tlkfile.cpp
|
2020-08-03 13:16:58 +00:00
|
|
|
src/resources/util.cpp
|
|
|
|
tools/main.cpp
|
|
|
|
tools/2datool.cpp
|
|
|
|
tools/biftool.cpp
|
|
|
|
tools/erftool.cpp
|
|
|
|
tools/gfftool.cpp
|
|
|
|
tools/keytool.cpp
|
|
|
|
tools/program.cpp
|
|
|
|
tools/rimtool.cpp
|
2020-08-14 04:21:01 +00:00
|
|
|
tools/tlktool.cpp
|
2020-08-03 13:16:58 +00:00
|
|
|
tools/tools.cpp)
|
|
|
|
|
|
|
|
add_executable(reone-tools ${TOOLS_HEADERS} ${TOOLS_SOURCES})
|
|
|
|
|
|
|
|
target_compile_definitions(reone-tools PRIVATE BOOST_BIND_GLOBAL_PLACEHOLDERS)
|
|
|
|
target_include_directories(reone-tools SYSTEM PRIVATE ${Boost_INCLUDE_DIRS})
|
|
|
|
target_include_directories(reone-tools PRIVATE ${CMAKE_SOURCE_DIR})
|
|
|
|
target_link_libraries(reone-tools PRIVATE ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY})
|
|
|
|
|
|
|
|
if(USE_EXTERNAL_GLM)
|
|
|
|
target_include_directories(reone-tools PRIVATE ${CMAKE_SOURCE_DIR}/external/glm)
|
|
|
|
endif()
|
|
|
|
endif()
|