2020-02-27 16:38:50 +00:00
|
|
|
if(TARGET Motif::Motif
|
|
|
|
AND TARGET X11::X11
|
|
|
|
AND TARGET X11::Xau
|
|
|
|
AND TARGET X11::Xt
|
|
|
|
)
|
2020-07-04 17:20:00 +00:00
|
|
|
|
|
|
|
#Only for this folder - ensure openmp is not used for compiling
|
|
|
|
#Modifying flags here have directory scope
|
|
|
|
if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU")
|
|
|
|
string(REPLACE "-fopenmp" " " CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}")
|
|
|
|
endif()
|
|
|
|
|
2019-12-22 01:20:44 +00:00
|
|
|
add_executable(mdx
|
|
|
|
src/graphx_mdx.c
|
|
|
|
src/rdf_reader_subs.f
|
|
|
|
src/mdx_main.F
|
2020-07-04 17:20:00 +00:00
|
|
|
src/mdx_subs.F
|
2019-12-22 01:20:44 +00:00
|
|
|
)
|
|
|
|
target_compile_definitions(mdx PRIVATE SUN IO64)
|
2020-07-04 17:20:00 +00:00
|
|
|
target_include_directories(mdx PUBLIC
|
|
|
|
${X11_Xt_INCLUDE_PATH}
|
|
|
|
${X11_X11_INCLUDE_PATH}
|
|
|
|
${MOTIF_INCLUDE_DIR})
|
2019-12-22 01:20:44 +00:00
|
|
|
target_link_libraries(mdx PUBLIC
|
2020-07-04 17:20:00 +00:00
|
|
|
${X11_X11_LIB}
|
|
|
|
${MOTIF_LIBRARIES}
|
|
|
|
${X11_Xt_LIB}
|
2019-12-22 01:20:44 +00:00
|
|
|
)
|
2020-07-04 17:20:00 +00:00
|
|
|
|
2020-02-13 20:03:21 +00:00
|
|
|
install(TARGETS mdx
|
2020-02-13 19:55:29 +00:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
2019-12-22 01:20:44 +00:00
|
|
|
endif()
|