19 lines
691 B
CMake
19 lines
691 B
CMake
file(GLOB BASE_SRC "*.cpp" "*.h" "${3rdParty_imgui_path}/*.cpp" )
|
|
|
|
|
|
include_directories(${3rdParty_ktx_path})
|
|
include_directories(${3rdParty_ktx_otherInclude_path})
|
|
include_directories(${3rdParty_glm_path})
|
|
include_directories(${3rdParty_gli_path})
|
|
include_directories(${3rdParty_vulkan_path})
|
|
include_directories(${3rdParty_imgui_path})
|
|
|
|
message("======================debug=====================")
|
|
message(${BASE_SRC})
|
|
|
|
add_library(base STATIC ${BASE_SRC} ${KTX_SOURCES})
|
|
if(WIN32)
|
|
target_link_libraries(base ${Vulkan_LIBRARY} ${WINLIBS})
|
|
else(WIN32)
|
|
target_link_libraries(base ${Vulkan_LIBRARY} ${XCB_LIBRARIES} ${WAYLAND_CLIENT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
|
endif(WIN32) |