summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-28 07:43:16 -0500
committersanine-a <sanine.not@pm.me>2020-10-28 07:43:16 -0500
commitb2d79c96c92f44e07e42129071da0357603664ed (patch)
tree8e9766cd9782f2d063e596d7003fe46442818626
parentf0a6a17e4fba3510c8ba8f6b114012873035a4a1 (diff)
modify CMakeLists.txt to allow for cross-platform build
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1dc8e94..5f02dca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,8 +29,11 @@ set(SOURCE_FILES
src/window/window.c)
add_executable(honey ${SOURCE_FILES})
-
-set(LIBRARIES ${LUA_LIBRARIES} assimp glfw GL glad stb_image dl m)
+if (WIN32)
+ set(LIBRARIES ${LUA_LIBRARIES} assimp glfw3 opengl32 glad stb_image m)
+else()
+ set(LIBRARIES ${LUA_LIBRARIES} assimp glfw GL glad stb_image dl m)
+endif()
target_link_libraries(honey ${LIBRARIES})