2012-10-27 13:44:35 +00:00
|
|
|
|
2013-06-22 14:44:56 +00:00
|
|
|
set_cpp(WITH_RUNTIME)
|
|
|
|
|
2012-10-27 13:44:35 +00:00
|
|
|
include_directories(BEFORE
|
|
|
|
include
|
|
|
|
src/include
|
|
|
|
src/libnurbs/internals
|
|
|
|
src/libnurbs/interface
|
2013-06-22 14:44:56 +00:00
|
|
|
src/libnurbs/nurbtess)
|
2012-10-27 13:44:35 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DBUILD_GLU32
|
|
|
|
-DNDEBUG
|
|
|
|
-DLIBRARYBUILD
|
2013-06-22 14:44:56 +00:00
|
|
|
-DRESOLVE_3D_TEXTURE_SUPPORT)
|
2012-10-27 13:44:35 +00:00
|
|
|
|
|
|
|
# we must use our own spec file
|
|
|
|
spec2def(glu32.dll glu32.spec ADD_IMPORTLIB)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
src/libutil/error.c
|
|
|
|
src/libutil/glue.c
|
|
|
|
src/libutil/mipmap.c
|
|
|
|
src/libutil/project.c
|
|
|
|
src/libutil/quad.c
|
|
|
|
src/libutil/registry.c
|
|
|
|
src/libtess/dict.c
|
|
|
|
src/libtess/geom.c
|
|
|
|
src/libtess/memalloc.c
|
|
|
|
src/libtess/mesh.c
|
|
|
|
src/libtess/normal.c
|
|
|
|
src/libtess/priorityq.c
|
|
|
|
src/libtess/render.c
|
|
|
|
src/libtess/sweep.c
|
|
|
|
src/libtess/tess.c
|
2017-11-26 12:24:50 +00:00
|
|
|
src/libtess/tessmono.c)
|
|
|
|
|
|
|
|
list(APPEND LIBNURBS_SOURCE
|
2012-10-27 13:44:35 +00:00
|
|
|
src/libnurbs/interface/bezierEval.cc
|
|
|
|
src/libnurbs/interface/bezierPatch.cc
|
|
|
|
src/libnurbs/interface/bezierPatchMesh.cc
|
|
|
|
src/libnurbs/interface/glcurveval.cc
|
|
|
|
src/libnurbs/interface/glinterface.cc
|
|
|
|
src/libnurbs/interface/glrenderer.cc
|
|
|
|
src/libnurbs/interface/glsurfeval.cc
|
|
|
|
src/libnurbs/interface/incurveeval.cc
|
|
|
|
src/libnurbs/interface/insurfeval.cc
|
|
|
|
src/libnurbs/internals/arc.cc
|
|
|
|
src/libnurbs/internals/arcsorter.cc
|
|
|
|
src/libnurbs/internals/arctess.cc
|
|
|
|
src/libnurbs/internals/backend.cc
|
|
|
|
src/libnurbs/internals/basiccrveval.cc
|
|
|
|
src/libnurbs/internals/basicsurfeval.cc
|
|
|
|
src/libnurbs/internals/bin.cc
|
|
|
|
src/libnurbs/internals/bufpool.cc
|
|
|
|
src/libnurbs/internals/cachingeval.cc
|
|
|
|
src/libnurbs/internals/ccw.cc
|
|
|
|
src/libnurbs/internals/coveandtiler.cc
|
|
|
|
src/libnurbs/internals/curve.cc
|
|
|
|
src/libnurbs/internals/curvelist.cc
|
|
|
|
src/libnurbs/internals/curvesub.cc
|
|
|
|
src/libnurbs/internals/dataTransform.cc
|
|
|
|
src/libnurbs/internals/displaylist.cc
|
|
|
|
src/libnurbs/internals/flist.cc
|
|
|
|
src/libnurbs/internals/flistsorter.cc
|
|
|
|
src/libnurbs/internals/hull.cc
|
|
|
|
src/libnurbs/internals/intersect.cc
|
|
|
|
src/libnurbs/internals/knotvector.cc
|
|
|
|
src/libnurbs/internals/mapdesc.cc
|
|
|
|
src/libnurbs/internals/mapdescv.cc
|
|
|
|
src/libnurbs/internals/maplist.cc
|
|
|
|
src/libnurbs/internals/mesher.cc
|
|
|
|
src/libnurbs/internals/monoTriangulationBackend.cc
|
|
|
|
src/libnurbs/internals/monotonizer.cc
|
|
|
|
src/libnurbs/internals/mycode.cc
|
|
|
|
src/libnurbs/internals/nurbsinterfac.cc
|
|
|
|
src/libnurbs/internals/nurbstess.cc
|
|
|
|
src/libnurbs/internals/patch.cc
|
|
|
|
src/libnurbs/internals/patchlist.cc
|
|
|
|
src/libnurbs/internals/quilt.cc
|
|
|
|
src/libnurbs/internals/reader.cc
|
|
|
|
src/libnurbs/internals/renderhints.cc
|
|
|
|
src/libnurbs/internals/slicer.cc
|
|
|
|
src/libnurbs/internals/sorter.cc
|
|
|
|
src/libnurbs/internals/splitarcs.cc
|
|
|
|
src/libnurbs/internals/subdivider.cc
|
|
|
|
src/libnurbs/internals/tobezier.cc
|
|
|
|
src/libnurbs/internals/trimline.cc
|
|
|
|
src/libnurbs/internals/trimregion.cc
|
|
|
|
src/libnurbs/internals/trimvertpool.cc
|
|
|
|
src/libnurbs/internals/uarray.cc
|
|
|
|
src/libnurbs/internals/varray.cc
|
|
|
|
src/libnurbs/nurbtess/directedLine.cc
|
|
|
|
src/libnurbs/nurbtess/gridWrap.cc
|
|
|
|
src/libnurbs/nurbtess/monoChain.cc
|
|
|
|
src/libnurbs/nurbtess/monoPolyPart.cc
|
|
|
|
src/libnurbs/nurbtess/monoTriangulation.cc
|
|
|
|
src/libnurbs/nurbtess/partitionX.cc
|
|
|
|
src/libnurbs/nurbtess/partitionY.cc
|
|
|
|
src/libnurbs/nurbtess/polyUtil.cc
|
|
|
|
src/libnurbs/nurbtess/primitiveStream.cc
|
|
|
|
src/libnurbs/nurbtess/quicksort.cc
|
|
|
|
src/libnurbs/nurbtess/rectBlock.cc
|
|
|
|
src/libnurbs/nurbtess/sampleComp.cc
|
|
|
|
src/libnurbs/nurbtess/sampleCompBot.cc
|
|
|
|
src/libnurbs/nurbtess/sampleCompRight.cc
|
|
|
|
src/libnurbs/nurbtess/sampleCompTop.cc
|
|
|
|
src/libnurbs/nurbtess/sampleMonoPoly.cc
|
|
|
|
src/libnurbs/nurbtess/sampledLine.cc
|
|
|
|
src/libnurbs/nurbtess/searchTree.cc
|
2017-11-26 12:24:50 +00:00
|
|
|
precomp.h)
|
|
|
|
|
|
|
|
add_library(glu32 SHARED
|
|
|
|
${LIBNURBS_SOURCE}
|
|
|
|
src/libnurbs/nurbtess/polyDBG.cc
|
|
|
|
${SOURCE}
|
|
|
|
glu32.rc
|
2013-07-19 23:40:04 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/glu32.def)
|
2012-10-27 13:44:35 +00:00
|
|
|
|
|
|
|
set_module_type(glu32 win32dll)
|
|
|
|
|
|
|
|
if(NOT MSVC)
|
2016-08-17 15:33:15 +00:00
|
|
|
add_target_compile_flags(glu32 "-Wno-write-strings -Wno-unused-but-set-variable")
|
2017-12-03 22:30:10 +00:00
|
|
|
elseif(USE_CLANG_CL)
|
|
|
|
add_target_compile_flags(glu32 "-Wno-self-assign -Wno-unused-function -Wno-microsoft-include")
|
|
|
|
add_target_compile_flags(glu32 "-Wno-deprecated-register -Wno-tautological-undefined-compare")
|
2012-10-27 13:44:35 +00:00
|
|
|
endif()
|
|
|
|
|
2013-07-19 23:40:04 +00:00
|
|
|
add_importlibs(glu32 opengl32 gdi32 msvcrt kernel32 ntdll)
|
2017-11-26 12:24:50 +00:00
|
|
|
add_pch(glu32 precomp.h LIBNURBS_SOURCE)
|
2012-10-27 13:44:35 +00:00
|
|
|
add_cd_file(TARGET glu32 DESTINATION reactos/system32 FOR all)
|