jak-project/third-party/tiny_gltf/CMakeLists.txt
Tyler Wilding 8fefd298fd
build: get rid of clang-cl in favor of actual clang among other things (#1589)
* git: ignore vs build dir

* cmake: ditch `clang-cl` on windows in favor of actual `clang`

* build: suppress a significant number of warnings

* build: adjust workflows and vendor nasm

* docs: update docs to remove `clang-cl` mentions

* build: fix some copy-paste mistakes in the linux build

* build: remove C++20 compat warnings as that is useful if we want to upgrade
2022-07-03 17:35:39 -04:00

11 lines
284 B
CMake
Vendored
Generated

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "-O3")
elseif(MSVC)
set(CMAKE_CXX_FLAGS "/EHsc")
endif()
include_directories(../ ../stb_image)
add_library(tiny_gltf tiny_gltf.cpp)
target_link_libraries(tiny_gltf stb_image)