From b2d79c96c92f44e07e42129071da0357603664ed Mon Sep 17 00:00:00 2001 From: sanine-a Date: Wed, 28 Oct 2020 07:43:16 -0500 Subject: modify CMakeLists.txt to allow for cross-platform build --- CMakeLists.txt | 7 +++++-- 1 file 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}) -- cgit v1.2.1