Started trying to build for windows

This commit is contained in:
Dane Johnson 2021-01-14 18:31:18 -06:00
parent 4d1f0160c1
commit 34c96722fe
3 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.o *.o
build/ build/
build-win/

View File

@ -21,8 +21,8 @@ add_executable(couch ${sources})
include_directories(core) include_directories(core)
target_link_libraries(couch glfw) target_link_libraries(couch glfw)
target_link_libraries(couch OpenGL::GL) target_link_libraries(couch OpenGL::GL)
target_link_libraries(couch GLEW) target_link_libraries(couch GLEW::GLEW)
target_link_libraries(couch lua) target_link_libraries(couch ${LUA_LIBRARIES})
file(COPY shaders DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) file(COPY shaders DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
@ -32,6 +32,7 @@ swig_add_library(couchlua
TYPE STATIC TYPE STATIC
LANGUAGE lua LANGUAGE lua
SOURCES scripting/couch.i) SOURCES scripting/couch.i)
target_link_libraries(couchlua ${LUA_LIBRARIES})
target_link_libraries(couch couchlua) target_link_libraries(couch couchlua)

View File

@ -1,3 +0,0 @@
CXX := g++
CXXFLAGS := `pkg-config --cflags gl glew glfw3 lua` -fPIC -g
LIBS := `pkg-config --libs gl glew glfw3 lua`