Archived
1
Fork 0

Remove some unnecessary cruft from CMakeLists.txt

This commit is contained in:
Joshua Goins 2022-02-21 10:13:47 -05:00
parent be0c0a80a7
commit f0a72530b7
2 changed files with 5 additions and 11 deletions

View file

@ -101,14 +101,6 @@ if(NEEDS_HOSTED_SHADER_COMPILER AND (NOT DEFINED SHADER_COMPILER_LOCATION))
message(FATAL_ERROR "You are building for a platform that needs a hosted shader compiler. Please specify the path in SHADER_COMPILER_LOCATION!") message(FATAL_ERROR "You are building for a platform that needs a hosted shader compiler. Please specify the path in SHADER_COMPILER_LOCATION!")
endif() endif()
set(CROSS_LIBS
spirv-cross-core
spirv-cross-glsl
spirv-cross-msl
glslang
SPIRV
)
add_subdirectory(extern) add_subdirectory(extern)
# enable lto # enable lto
@ -120,8 +112,6 @@ add_subdirectory(platforms)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
source_group(Shaders shaders)
add_subdirectory(engine) add_subdirectory(engine)
add_subdirectory(tools) add_subdirectory(tools)
add_subdirectory(example) add_subdirectory(example)

View file

@ -12,6 +12,10 @@ target_link_libraries(ShaderCompiler
PRIVATE PRIVATE
Utility Utility
Log Log
${CROSS_LIBS}) spirv-cross-core
spirv-cross-glsl
spirv-cross-msl
glslang
SPIRV)
target_include_directories(ShaderCompiler PUBLIC include PRIVATE src) target_include_directories(ShaderCompiler PUBLIC include PRIVATE src)
set_engine_properties(ShaderCompiler) set_engine_properties(ShaderCompiler)