Example/Vulkan的CMAKE中宏支持多个参数
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
macro(CreateProject name main_file)
|
||||
add_executable(${name} ${main_file}.cpp)
|
||||
macro(CreateProject name)
|
||||
add_executable(${name} ${ARGN})
|
||||
target_link_libraries(${name} ${ULRE})
|
||||
endmacro()
|
||||
|
||||
add_library(TGATexture STATIC TGATexture.cpp)
|
||||
|
||||
CreateProject(0.triangle main)
|
||||
CreateProject(1.indices_rect indices_rect)
|
||||
CreateProject(2.texture_rect texture_rect)
|
||||
target_link_libraries(2.texture_rect TGATexture)
|
||||
CreateProject(3.Geometry2D Geometry2D)
|
||||
CreateProject(4.Geometry3D Geometry3D)
|
||||
CreateProject(5.LoadModel LoadModel)
|
||||
CreateProject(0.triangle main.cpp)
|
||||
CreateProject(1.indices_rect indices_rect.cpp)
|
||||
CreateProject(2.texture_rect texture_rect.cpp TGATexture.cpp)
|
||||
CreateProject(3.Geometry2D Geometry2D.cpp)
|
||||
CreateProject(4.Geometry3D Geometry3D.cpp)
|
||||
CreateProject(5.LoadModel LoadModel.cpp)
|
||||
|
Reference in New Issue
Block a user