building on linux now?

This commit is contained in:
Dani The Skunk 2022-12-21 07:49:06 +01:00
parent ed0a834ee2
commit fffec0050a
1 changed files with 6 additions and 2 deletions

View File

@ -21,13 +21,17 @@ set(BUILD_SHARED_LIBS OFF)
set(SKIP_INSTALL_ALL ON) 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") 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) add_subdirectory(lib/zlib-1.2.13)
set(ZLIB_LIBRARY zlib) #set(ZLIB_LIBRARY zlib)
add_subdirectory(lib/lpng1639) add_subdirectory(lib/lpng1639)
project ("glew") project ("glew")
add_library(glew STATIC "lib/glew-2.1.0/src/glew.c" "lib/glew-2.1.0/include/GL/glew.h") add_library(glew STATIC "lib/glew-2.1.0/src/glew.c" "lib/glew-2.1.0/include/GL/glew.h")
if(WIN32)
target_link_libraries(glew opengl32) target_link_libraries(glew opengl32)
else()
target_link_libraries(glew GL)
endif()
target_include_directories(glew PRIVATE lib/glew-2.1.0/include) 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 C_STANDARD 11 C_STANDARD_REQUIRED YES C_EXTENSIONS YES)
set_target_properties(glew PROPERTIES COMPILE_FLAGS "-Wno-everything") set_target_properties(glew PROPERTIES COMPILE_FLAGS "-Wno-everything")