building on linux now?
This commit is contained in:
parent
ed0a834ee2
commit
fffec0050a
|
@ -21,13 +21,17 @@ set(BUILD_SHARED_LIBS OFF)
|
|||
set(SKIP_INSTALL_ALL ON)
|
||||
set(ZLIB_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/lib/zlib-1.2.13" "${CMAKE_BINARY_DIR}/lib/zlib-1.2.13")
|
||||
add_subdirectory(lib/zlib-1.2.13)
|
||||
set(ZLIB_LIBRARY zlib)
|
||||
#set(ZLIB_LIBRARY zlib)
|
||||
add_subdirectory(lib/lpng1639)
|
||||
|
||||
project ("glew")
|
||||
|
||||
add_library(glew STATIC "lib/glew-2.1.0/src/glew.c" "lib/glew-2.1.0/include/GL/glew.h")
|
||||
target_link_libraries(glew opengl32)
|
||||
if(WIN32)
|
||||
target_link_libraries(glew opengl32)
|
||||
else()
|
||||
target_link_libraries(glew GL)
|
||||
endif()
|
||||
target_include_directories(glew PRIVATE lib/glew-2.1.0/include)
|
||||
set_target_properties(glew PROPERTIES C_STANDARD 11 C_STANDARD_REQUIRED YES C_EXTENSIONS YES)
|
||||
set_target_properties(glew PROPERTIES COMPILE_FLAGS "-Wno-everything")
|
||||
|
|
Loading…
Reference in New Issue