Remove some unnecessary cruft from CMakeLists.txt
This commit is contained in:
parent
be0c0a80a7
commit
f0a72530b7
2 changed files with 5 additions and 11 deletions
|
@ -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!")
|
||||
endif()
|
||||
|
||||
set(CROSS_LIBS
|
||||
spirv-cross-core
|
||||
spirv-cross-glsl
|
||||
spirv-cross-msl
|
||||
glslang
|
||||
SPIRV
|
||||
)
|
||||
|
||||
add_subdirectory(extern)
|
||||
|
||||
# enable lto
|
||||
|
@ -120,8 +112,6 @@ add_subdirectory(platforms)
|
|||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
source_group(Shaders shaders)
|
||||
|
||||
add_subdirectory(engine)
|
||||
add_subdirectory(tools)
|
||||
add_subdirectory(example)
|
|
@ -12,6 +12,10 @@ target_link_libraries(ShaderCompiler
|
|||
PRIVATE
|
||||
Utility
|
||||
Log
|
||||
${CROSS_LIBS})
|
||||
spirv-cross-core
|
||||
spirv-cross-glsl
|
||||
spirv-cross-msl
|
||||
glslang
|
||||
SPIRV)
|
||||
target_include_directories(ShaderCompiler PUBLIC include PRIVATE src)
|
||||
set_engine_properties(ShaderCompiler)
|
||||
|
|
Reference in a new issue