Commit bfc472d3 authored by Axel Loewe's avatar Axel Loewe
Browse files

Added GLUT_ON option to CMake; added gitversion.h generation to CMake; removed jenkins CI stub

parent 3deacd74
Pipeline #3265 passed with stages
in 1 minute and 54 seconds
#!/bin/bash
cd $WORKSPACE
make clean
make
......@@ -17,6 +17,11 @@ if(AMD_VIDEO)
add_compile_definitions(USE_AMD)
endif(AMD_VIDEO)
option(GLUT_ON "Use GLUT instead of GLFW" ON)
if(GLUT_ON)
add_compile_definitions(USE_GLUT)
endif(GLUT_ON)
find_package(Threads REQUIRED)
find_package(PNG REQUIRED)
find_package(JPEG REQUIRED)
......@@ -41,6 +46,16 @@ string(REPLACE "-ljpeg " "" FLTK_LD_FLAGS ${FLTK_LD_FLAGS})
LIST(REMOVE_ITEM FLTK_LD_FLAGS "-lpng" )
message(STATUS "Found FLTK linking flags: ${FLTK_LD_FLAGS}")
execute_process(
COMMAND git rev-parse HEAD
OUTPUT_VARIABLE COMMIT_ID
OUTPUT_STRIP_TRAILING_WHITESPACE
)
execute_process(
COMMAND echo "const char *gitversion = \"${COMMIT_ID}\";"
OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/gitversion.h"
)
# VTK
option(USE_VTK "Build with VTK" ON)
if (USE_VTK)
......
Supports Markdown
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