mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
fb34f603ae
commit
c4e097727d
1 changed files with 3 additions and 6 deletions
|
|
@ -9,12 +9,12 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
|
|||
|
||||
if(MSVC)
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE /W4)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glfw)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glm)
|
||||
else()
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra)
|
||||
endif()
|
||||
|
||||
option(VE_USE_SYSTEM_LIBS "Use system installed libraries" ON)
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(GLEW REQUIRED)
|
||||
find_package(OpenAL REQUIRED)
|
||||
|
|
@ -27,9 +27,6 @@ else()
|
|||
endif(WIN32)
|
||||
|
||||
set(LIBS "")
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glfw)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glm)
|
||||
set(LIBS glm)
|
||||
|
||||
if(UNIX)
|
||||
|
|
@ -38,6 +35,6 @@ if(UNIX)
|
|||
endif(UNIX)
|
||||
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} ${LIBS} glfw OpenGL::GL ${OPENAL_LIBRARY} GLEW::GLEW spng)
|
||||
target_link_libraries(${PROJECT_NAME} ${LIBS} glfw OpenGL::GL ${OPENAL_LIBRARY} GLEW::GLEW ${PNGLIB})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/res DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/build)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue