2020-11-10 15:26:38 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(HexEditor)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
2020-11-10 17:39:07 +01:00
|
|
|
find_library(GLFW REQUIRED glfw3)
|
2020-11-10 15:26:38 +01:00
|
|
|
find_library(OPENGL REQUIRED OpenGL)
|
|
|
|
|
|
|
|
include_directories(include ${GLFW_INCLUDE_DIRS} libs/ImGui/include libs/glad/include)
|
|
|
|
|
2020-11-10 17:39:07 +01:00
|
|
|
SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -mwindows)
|
|
|
|
|
|
|
|
add_executable(ImHex WIN32
|
2020-11-10 15:26:38 +01:00
|
|
|
source/main.cpp
|
|
|
|
source/window.cpp
|
2020-11-10 21:31:04 +01:00
|
|
|
source/utils.cpp
|
2020-11-10 15:26:38 +01:00
|
|
|
|
|
|
|
source/parser/lexer.cpp
|
|
|
|
source/parser/parser.cpp
|
|
|
|
|
2020-11-10 21:31:04 +01:00
|
|
|
source/views/view_hexeditor.cpp
|
|
|
|
source/views/view_pattern.cpp
|
|
|
|
source/views/view_pattern_data.cpp
|
|
|
|
|
2020-11-10 15:26:38 +01:00
|
|
|
libs/glad/source/glad.c
|
|
|
|
|
|
|
|
libs/ImGui/source/imgui.cpp
|
|
|
|
libs/ImGui/source/imgui_demo.cpp
|
|
|
|
libs/ImGui/source/imgui_draw.cpp
|
|
|
|
libs/ImGui/source/imgui_widgets.cpp
|
|
|
|
libs/ImGui/source/imgui_impl_glfw.cpp
|
|
|
|
libs/ImGui/source/imgui_impl_opengl3.cpp
|
2020-11-10 17:34:16 +01:00
|
|
|
|
|
|
|
res.rc
|
2020-11-10 15:26:38 +01:00
|
|
|
)
|
|
|
|
|
2020-11-10 17:39:07 +01:00
|
|
|
target_link_libraries(ImHex glfw3)
|
2020-11-10 15:26:38 +01:00
|
|
|
|
|
|
|
|