Some small CMake fixes.

This commit is contained in:
f3nix 2008-01-05 13:47:52 +00:00
parent 97be005035
commit 95565cda3e
4 changed files with 16 additions and 15 deletions

View File

@ -1,4 +1,3 @@
FIND_PACKAGE(OpenGL REQUIRED)
IF(OPENGL_FOUND)
MESSAGE(STATUS "Check for installed OpenGL -- found")

View File

@ -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)

View File

@ -1,7 +1,11 @@
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(ZLIB REQUIRED)
IF(ZLIB_FOUND)
MESSAGE(STATUS "Check for installed ZLIB -- found")
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
@ -12,7 +16,3 @@ IF(ZLIB_FOUND)
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)

View File

@ -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