This repository was archived by the owner on Oct 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 2.6 )
2- project (ZipPicView CXX )
1+ cmake_minimum_required (VERSION 2.6 )
2+ project (ZipPicView CXX )
33set (CMAKE_CXX_STANDARD 11)
44
5- include (CPack )
6- set (CPACK_GENERATOR "ZIP" )
5+ set (SRC ZipPicView MainFrame.cpp ZipPicViewApp.cpp ImageViewPanel.cpp)
76
8- set (SRC ZipPicView MainFrame.cpp ZipPicViewApp.cpp ImageViewPanel.cpp)
9-
10- if (WINDOWS)
11- enable_language (RC )
12- #CMake does not play well with GCC's windres.
13- set (CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -o <OBJECT> -i <SOURCE>" )
14- set (SRC ${SRC} resource.rc)
15- # set (CMAKE_EXE_LINKER_FLAGS "-static")
16- endif (WINDOWS )
7+ if (WINDOWS OR MSYS )
8+ enable_language (RC )
9+ #CMake does not play well with GCC's windres.
10+ set (CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -o <OBJECT> -i <SOURCE>" )
11+ set (SRC ${SRC} resource.rc)
12+ endif (WINDOWS OR MSYS )
1713
1814add_executable (${SRC} )
1915
2016set (wxWidgets_CONFIGURATION mswu)
2117find_package (wxWidgets COMPONENTS core base REQUIRED )
2218find_package (PkgConfig REQUIRED )
23- pkg_check_modules (LIBZIP REQUIRED libzip )
19+ pkg_check_modules (LIBZIP REQUIRED libzip )
2420
25- include (${wxWidgets_USE_FILE} )
21+ include (${wxWidgets_USE_FILE} )
2622include_directories (${LIBZIP_INCLUDE_DIRS} )
2723
28- target_link_libraries (${PROJECT_NAME} ${wxWidgets_LIBRARIES} ${LIBZIP_LIBRARIES} )
24+ target_link_libraries (${PROJECT_NAME} ${wxWidgets_LIBRARIES} ${LIBZIP_LIBRARIES} )
You can’t perform that action at this time.
0 commit comments