Compare commits

...

3 Commits

Author SHA1 Message Date
97960cffc6
Easier to add files now. 2024-02-23 19:38:17 +01:00
e338f7e6e9
Pre-compiled headers do not work. 2024-02-23 19:33:16 +01:00
328d186eb5
Useless comment added by the IDE. 2024-02-23 19:31:47 +01:00

View File

@ -5,64 +5,19 @@ project(BillySheet LANGUAGES CXX C)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
# see https://cmake.org/cmake/help/latest/module/FindBoost.html
find_package(Boost REQUIRED COMPONENTS stacktrace_addr2line)
include_directories(${Boost_INCLUDE_DIR})
set(PRECOMPILE_HEADERS
include/gui/gui.hpp
include/gui/gui_data.hpp
include/gui/window.hpp
file(GLOB_RECURSE SOURCE_HEADERS
include/*.h
include/*.hpp
external/ImFileDialog/*.h
)
set(SOURCE_HEADERS
include/imgui/imconfig.h
include/imgui/imgui.h
include/imgui/imgui_stdlib.h
include/imgui/imgui_impl_glfw.h
include/imgui/imgui_impl_opengl3.h
include/imgui/imgui_impl_opengl3_loader.h
include/imgui/imgui_internal.h
include/imgui/imstb_rectpack.h
include/imgui/imstb_textedit.h
include/imgui/imstb_truetype.h
include/stb_image.h
external/ImFileDialog/ImFileDialog.h
include/gui/gui.hpp
include/gui/gui_data.hpp
include/gui/window.hpp
include/character_sheet.hpp
include/characteristic/habilete.hpp
include/characteristic/adresse.hpp
include/characteristic/endurance.hpp
include/characteristic/chance.hpp
include/gui/menu/menu.hpp
include/gui/menu/menu_data.hpp
include/characteristic/characteristic.hpp
include/controller.hpp
include/gui_data_interface.hpp
)
set(SOURCE_FILES
src/imgui/imgui.cpp
src/imgui/imgui_stdlib.cpp
src/imgui/imgui_draw.cpp
src/imgui/imgui_impl_glfw.cpp
src/imgui/imgui_impl_opengl3.cpp
src/imgui/imgui_tables.cpp
src/imgui/imgui_widgets.cpp
external/ImFileDialog/ImFileDialog.cpp
src/main.cpp
src/gui/gui.cpp
src/gui/gui_data.cpp
src/gui/window.cpp
src/character_sheet.cpp
src/characteristic/adresse.cpp
src/characteristic/endurance.cpp
src/characteristic/chance.cpp
src/gui/menu/menu.cpp
src/controller.cpp
file(GLOB_RECURSE SOURCE_FILES
src/*.cpp
external/ImFileDialog/ImFileDialog.cpp
)
set(SOURCES
@ -169,7 +124,6 @@ set_target_properties(glfw PROPERTIES
set_target_properties(spdlog PROPERTIES UNITY_BUILD ON)
target_precompile_headers(BillySheet PRIVATE ${PRECOMPILE_HEADERS})
target_compile_definitions(BillySheet PRIVATE
$<$<CONFIG:Debug>:_GLIBCXX_DEBUG>
$<$<CONFIG:Debug>:SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG>