cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
set(sources demo.cpp)
add_executable(demo ${sources})
-target_link_libraries(demo spirv util spirv_to_llvm)
+target_link_libraries(demo vulkan_cpu_spirv vulkan_cpu_util vulkan_cpu_spirv_to_llvm)
parser.cpp
patch.cpp)
add_executable(generate_spirv_parser ${sources})
-target_link_libraries(generate_spirv_parser util json)
+target_link_libraries(generate_spirv_parser vulkan_cpu_util vulkan_cpu_json)
location.cpp
parser.cpp
source.cpp)
-add_library(json STATIC ${sources})
-target_link_libraries(json util)
\ No newline at end of file
+add_library(vulkan_cpu_json STATIC ${sources})
+target_link_libraries(vulkan_cpu_json vulkan_cpu_util)
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
set(sources llvm_wrapper.cpp)
-add_library(llvm_wrapper STATIC ${sources})
-if(1)
+add_library(vulkan_cpu_llvm_wrapper STATIC ${sources})
+if(0)
llvm_map_components_to_libnames(llvm_libraries core native analysis orcjit mcjit nativecodegen)
else()
set(llvm_libraries LLVM)
endif()
-target_link_libraries(llvm_wrapper util ${llvm_libraries})
+target_link_libraries(vulkan_cpu_llvm_wrapper util ${llvm_libraries})
VERBATIM
COMMENT "Generating SPIR-V Parser")
set(sources ${sources} ${spirv_parser_sources})
-add_library(spirv STATIC ${sources})
-target_link_libraries(spirv util json)
-target_include_directories(spirv PUBLIC ${spirv_parser_generated_include_dir})
+add_library(vulkan_cpu_spirv STATIC ${sources})
+target_link_libraries(vulkan_cpu_spirv vulkan_cpu_util vulkan_cpu_json)
+target_include_directories(vulkan_cpu_spirv PUBLIC ${spirv_parser_generated_include_dir})
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
set(sources spirv_to_llvm.cpp)
-add_library(spirv_to_llvm STATIC ${sources})
-target_link_libraries(spirv_to_llvm util spirv llvm_wrapper)
+add_library(vulkan_cpu_spirv_to_llvm STATIC ${sources})
+target_link_libraries(vulkan_cpu_spirv_to_llvm vulkan_cpu_util vulkan_cpu_spirv vulkan_cpu_llvm_wrapper)
string_view.cpp
variant.cpp
void_t.cpp)
-add_library(util STATIC ${sources})
-target_include_directories(util PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/..)
-add_executable(util_test EXCLUDE_FROM_ALL ${sources} util_test.cpp)
-target_include_directories(util_test PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/..)
+add_library(vulkan_cpu_util STATIC ${sources})
+target_include_directories(vulkan_cpu_util PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/..)
+add_executable(vulkan_cpu_util_test EXCLUDE_FROM_ALL ${sources} util_test.cpp)
+target_include_directories(vulkan_cpu_util_test PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/..)