For the moment, builds on windows and linux
This commit is contained in:
parent
34c96722fe
commit
353dd07704
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*.o
|
||||
build/
|
||||
build-win/
|
||||
build-win/
|
||||
binaries/
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user