set(EXENAME odm) find_library(netcdf netcdf REQUIRED) include_directories(../michlib/michlib) file(GLOB srcs *.cpp) add_executable(${EXENAME} ${srcs}) target_link_libraries(${EXENAME} ${linker_options} ${netcdf}) set_target_properties(${EXENAME} PROPERTIES POSITION_INDEPENDENT_CODE ON) install(TARGETS ${EXENAME})