For the moment, builds on windows and linux

This commit is contained in:
Dane Johnson 2021-01-15 14:20:25 -06:00
parent 34c96722fe
commit 353dd07704
2 changed files with 9 additions and 3 deletions

3
.gitignore vendored
View File

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

View File

@ -19,7 +19,9 @@ file(GLOB shaders shaders/*)
add_compile_definitions(LUA_SCRIPTING)
add_executable(couch ${sources})
include_directories(core)
target_link_libraries(couch glfw)
if(NOT WIN32)
target_link_libraries(couch glfw)
endif()
target_link_libraries(couch OpenGL::GL)
target_link_libraries(couch GLEW::GLEW)
target_link_libraries(couch ${LUA_LIBRARIES})
@ -35,4 +37,7 @@ swig_add_library(couchlua
target_link_libraries(couchlua ${LUA_LIBRARIES})
target_link_libraries(couch couchlua)
if(WIN32)
target_link_libraries(couch glfw3dll)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
endif(WIN32)