1
0
mirror of synced 2024-11-12 02:00:52 +01:00

Generate a proper Win32 executable

This commit is contained in:
WerWolv 2020-11-10 17:39:07 +01:00
parent a6dd9e7283
commit 01b4ac8661

View File

@ -3,12 +3,14 @@ project(HexEditor)
set(CMAKE_CXX_STANDARD 20)
find_library(GLFW REQUIRED glfw3s)
find_library(GLFW REQUIRED glfw3)
find_library(OPENGL REQUIRED OpenGL)
include_directories(include ${GLFW_INCLUDE_DIRS} libs/ImGui/include libs/glad/include)
add_executable(HexEditor
SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -mwindows)
add_executable(ImHex WIN32
source/main.cpp
source/window.cpp
@ -27,6 +29,6 @@ add_executable(HexEditor
res.rc
)
target_link_libraries(HexEditor glfw3)
target_link_libraries(ImHex glfw3)