2008-01-05 17:43:24 +00:00
|
|
|
FIND_PACKAGE(OpenGL)
|
2008-01-04 22:26:48 +00:00
|
|
|
IF(OPENGL_FOUND)
|
|
|
|
MESSAGE(STATUS "Check for installed OpenGL -- found")
|
|
|
|
ELSE(OPENGL_FOUND)
|
|
|
|
MESSAGE(STATUS "Check for installed OpenGL -- not found")
|
|
|
|
MESSAGE(FATAL_ERROR "OpenGL was not found - it is required to build KiCad")
|
|
|
|
ENDIF(OPENGL_FOUND)
|
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
ADD_DEFINITIONS(-DPCBNEW)
|
|
|
|
|
2007-12-30 03:30:34 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
|
|
|
../pcbnew
|
|
|
|
../polygon)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
|
|
|
SET(3D-VIEWER_SRCS
|
|
|
|
3d_aux.cpp
|
|
|
|
3d_canvas.cpp
|
|
|
|
3d_class.cpp
|
|
|
|
3d_draw.cpp
|
|
|
|
3d_frame.cpp
|
|
|
|
3d_read_mesh.cpp
|
|
|
|
3d_toolbar.cpp
|
|
|
|
trackball.cpp)
|
|
|
|
|
|
|
|
ADD_LIBRARY(3d-viewer ${3D-VIEWER_SRCS})
|