Commit 3c273d02 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts

optional scontactplot

parents 4d59cc62 e3163871
import gmshType
from . import gmshType
import time
class Mesh() :
......
......@@ -28,3 +28,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scontact3.py DESTINATION ${PYTHON_INST
add_subdirectory(scontactplot)
#find_package(OpenMP)
#if (OPENMP_FOUND)
# set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
#endif()
add_executable(scontactplot fltk.cc ObjectCollection.cc)
find_package(OpenGL REQUIRED)
find_package(FLTK REQUIRED)
find_package(argp REQUIRED)
find_package(PNG REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${FLTK_INCLUDE_DIR})
include_directories(${PNG_INCLUDE_DIR})
include_directories(${ARGP_INCLUDE_DIRS})
set(plotlibs ${OPENGL_LIBRARIES} ${FLTK_LIBRARIES})
if (ARGP_LIBRARIES)
set(plotlibs ${plotlibs} ${ARGP_LIBRARIES})
endif (ARGP_LIBRARIES)
target_link_libraries(scontactplot ${plotlibs} ${PNG_LIBRARIES})
#find_package(OpenMP)
#if (OPENMP_FOUND)
# set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
#endif()
install(TARGETS scontactplot DESTINATION bin)
find_package(FLTK)
if (FLTK_LIBRARIES)
add_executable(scontactplot fltk.cc ObjectCollection.cc)
find_package(OpenGL REQUIRED)
find_package(PNG REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${FLTK_INCLUDE_DIR})
include_directories(${PNG_INCLUDE_DIR})
target_link_libraries(scontactplot ${OPENGL_LIBRARIES} ${FLTK_LIBRARIES} ${PNG_LIBRARIES})
install(TARGETS scontactplot DESTINATION bin)
endif (FLTK_LIBRARIES)
Markdown is supported
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