kicad/3d-viewer/CMakeLists.txt

26 lines
521 B
CMake

FIND_PACKAGE(OpenGL)
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)
ADD_DEFINITIONS(-DPCBNEW)
INCLUDE_DIRECTORIES(
../pcbnew
../polygon)
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})