install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/MDZ) set(exes mdz mdz_smoke_test) foreach (EXE IN LISTS exes) message(STATUS "Target = ${EXE}") add_executable(${EXE} ${EXE}.cpp) target_include_directories(${EXE} PUBLIC $ $ ) target_link_libraries(${EXE} SZ3) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${EXE} TYPE BIN) endforeach ()