Commit e3163871 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts

scontactplot optional

parent ffe8de84
import gmshType
from . import gmshType
import time
class Mesh() :
......
......@@ -26,18 +26,21 @@ set_target_properties(${SWIG_MODULE_scontact3_REAL_NAME} PROPERTIES COMPILE_FLAG
install(TARGETS ${SWIG_MODULE_scontact3_REAL_NAME} DESTINATION ${PYTHON_INSTDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/scontact3.py DESTINATION ${PYTHON_INSTDIR})
add_executable(scontactplot scontactplot.cc)
find_package(OpenGL REQUIRED)
find_package(FLTK REQUIRED)
find_package(argp REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${FLTK_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})
find_package(FLTK)
if (FLTK_LIBRARIES)
add_executable(scontactplot scontactplot.cc)
find_package(OpenGL REQUIRED)
find_package(argp REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${FLTK_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})
install(TARGETS scontactplot DESTINATION bin)
endif (FLTK_LIBRARIES)
#find_package(OpenMP)
......@@ -46,4 +49,3 @@ target_link_libraries(scontactplot ${plotlibs})
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
#endif()
install(TARGETS scontactplot DESTINATION bin)
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