Files
ResInsight/ThirdParty/Ert/devel/libecl_well/applications/CMakeLists.txt
2013-12-12 22:17:51 +01:00

27 lines
840 B
CMake

add_executable( segment_info segment_info.c )
add_executable( CF_dump well_CF_dump.c )
set(program_list segment_info CF_dump)
foreach(prog ${program_list})
target_link_libraries( ${prog} ecl_well ecl)
if (USE_RUNPATH)
add_runpath( ${prog} )
endif()
#-----------------------------------------------------------------
if (WELL_INSTALL_PREFIX)
set (destination ${CMAKE_INSTALL_PREFIX}/${WELL_INSTALL_PREFIX}/bin)
else()
set (destination ${CMAKE_INSTALL_PREFIX}/bin)
endif()
if (INSTALL_ERT)
install(TARGETS ${prog} DESTINATION ${destination})
if (INSTALL_GROUP)
install(CODE "EXECUTE_PROCESS(COMMAND chgrp ${INSTALL_GROUP} ${destination}/${prog})")
install(CODE "EXECUTE_PROCESS(COMMAND chmod g+w ${destination}/${prog})")
endif()
endif()
endforeach()