Update CMakeLists.txt
This commit is contained in:
parent
fb34f603ae
commit
c4e097727d
@ -9,12 +9,12 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
|
|||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE /W4)
|
target_compile_options(${PROJECT_NAME} PRIVATE /W4)
|
||||||
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glfw)
|
||||||
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glm)
|
||||||
else()
|
else()
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra)
|
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(VE_USE_SYSTEM_LIBS "Use system installed libraries" ON)
|
|
||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
find_package(GLEW REQUIRED)
|
find_package(GLEW REQUIRED)
|
||||||
find_package(OpenAL REQUIRED)
|
find_package(OpenAL REQUIRED)
|
||||||
@ -27,9 +27,6 @@ else()
|
|||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
set(LIBS "")
|
set(LIBS "")
|
||||||
|
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glfw)
|
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libs/glm)
|
|
||||||
set(LIBS glm)
|
set(LIBS glm)
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
@ -38,6 +35,6 @@ if(UNIX)
|
|||||||
endif(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)
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/res DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/build)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user