Commit 95565cda authored by f3nix's avatar f3nix

Some small CMake fixes.

parent 97be0050
FIND_PACKAGE(OpenGL REQUIRED)
IF(OPENGL_FOUND)
MESSAGE(STATUS "Check for installed OpenGL -- found")
......
......@@ -21,6 +21,8 @@ SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s")
# http://www.wxwidgets.org/manuals/2.8/wx_librarieslist.html
SET(wxWidgets_USE_LIBS base core adv gl html net)
# OpenGL support
SET(WXWINDOWS_USE_GL 1)
# We need the Find package for wxWidgets to work.
FIND_PACKAGE(wxWidgets REQUIRED)
......
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(ZLIB REQUIRED)
IF(ZLIB_FOUND)
MESSAGE(STATUS "Check for installed ZLIB -- found")
SET(MINIZIP_SRCS
ELSE(ZLIB_FOUND)
MESSAGE(STATUS "Check for installed zlib -- not found")
MESSAGE(FATAL_ERROR "zlib was not found - it is required to build KiCad")
ENDIF(ZLIB_FOUND)
SET(MINIZIP_SRCS
ioapi.c
minizip.c
zip.c)
ADD_EXECUTABLE(minizip ${MINIZIP_SRCS} )
ADD_EXECUTABLE(minizip ${MINIZIP_SRCS} )
TARGET_LINK_LIBRARIES(minizip ${ZLIB_LIBRARIES})
TARGET_LINK_LIBRARIES(minizip ${ZLIB_LIBRARIES})
INSTALL(TARGETS minizip RUNTIME DESTINATION bin)
ELSE(ZLIB_FOUND)
MESSAGE(STATUS "Check for installed zlib -- not found")
MESSAGE(FATAL_ERROR "zlib was not found - it is required to build KiCad")
ENDIF(ZLIB_FOUND)
INSTALL(TARGETS minizip RUNTIME DESTINATION bin)
......@@ -133,10 +133,10 @@ SET(PCBNEW_SRCS
via_edit.cpp
work.cpp
xchgmod.cpp
zones_by_polygon.cpp
zone_filling_algorithm.cpp
zones_by_polygon.cpp
# zones.cpp
)
zones_test_and_combine_areas.cpp)
SET(PCBNEW_EXTRA_SRCS
../share/drawframe.cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment