-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
I am trying to add a CMakeLists.txt for the project, and compile successfully, but just No response during runing.
This is the CMakeLists.txt:
cmake_minimum_required(VERSION 3.21)
Project(VoidImageViewer C)
set(VoidImageViewer_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/src")
set(LibWebp_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/libwebp")
file(GLOB SRC_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.c"
"${CMAKE_CURRENT_SOURCE_DIR}/res/voidImageViewer.rc"
)
add_executable(VoidImageViewer WIN32 ${SRC_FILES})
target_include_directories(VoidImageViewer
PRIVATE ${VoidImageViewer_INCLUDE}
${LibWebp_INCLUDE}
)
target_link_libraries(VoidImageViewer
PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/obj/release-static/x64/lib/libwebp.lib"
"${CMAKE_CURRENT_SOURCE_DIR}/obj/release-static/x64/lib/libwebpdemux.lib"
"${CMAKE_CURRENT_SOURCE_DIR}/obj/release-static/x64/lib/libwebpdecoder.lib"
comctl32.lib
shlwapi.lib
UxTheme.lib
Ws2_32.lib
HtmlHelp.lib
msimg32.lib
Imm32.lib
Urlmon.lib
)here is the binary(txt because github doesnot support upload binary on issue pane.):
Metadata
Metadata
Assignees
Labels
No labels