ISCE_INSAR/contrib/mdx/CMakeLists.txt

21 lines
551 B
CMake
Raw Normal View History

2020-01-08 20:10:14 +00:00
if(TARGET Motif::Motif AND TARGET X11::Xt AND TARGET X11::X11)
add_executable(mdx
src/graphx_mdx.c
src/rdf_reader_subs.f
src/mdx_main.F
src/mdx.F
)
target_compile_definitions(mdx PRIVATE SUN IO64)
if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU")
target_compile_definitions(mdx PRIVATE GFORTRAN)
endif()
target_link_libraries(mdx PUBLIC
Motif::Motif
X11::Xt
2020-01-08 20:10:14 +00:00
X11::X11
)
2020-02-13 20:03:21 +00:00
install(TARGETS mdx
2020-02-13 19:55:29 +00:00
RUNTIME DESTINATION bin
)
endif()